• Resolved rui9075918

    (@rui9075918)


    Good afternoon,

    I’m trying to pass values ​​from two fields to two other fields, by clicking on a button I’ve been trying something like jQuery(getField(‘fieldname120|n’)).setVal(jQuery(‘[id=”fieldname170_”]’ ).val()); jQuery(getField(‘fieldname119|n’)).setVal(jQuery(‘[id=”fieldname171_”]’).val()); .

    I’m putting this code on the button in ‘OnClick event’

    But it’s not working can you help.
    Grateful.

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @rui9075918

    Thank you very much for using our plugin. You can use modifiers only in the equations context. In the onclick event you should use the fields’ names without modifiers. Also, you don’t need the jQuery library:

    
    getField('fieldname120').setVal(getField('fieldname170').val(true));
    getField('fieldname119').setVal(getField('fieldname171').val(true));

    Best regards.

Viewing 1 replies (of 1 total)

The topic ‘on click’ is closed to new replies.