• Resolved wilfried1954

    (@wilfried1954)


    Hello,

    I try to get the value from a calculated field in the onclick event of a button. It seems not possible. For example:

    var naam = fieldname134;
    document.location = naam;

    I do it now with a some global variables, but should be nice if I can access the value directly.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @wilfried1954

    You cannot access to the fields values directly by their names, in a context different to the equations, the code of the onclick event in your button should be edited as follows:

    
    document.location.href=jQuery('[id*="fieldname134_"]').val();
    

    and that’s all.
    Best regards.

    Thread Starter wilfried1954

    (@wilfried1954)

    Thank you, this works perfect. Have a nice weekend, Wilfried

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘accessing calculate field in button click event’ is closed to new replies.