• Resolved zukenstein

    (@zukenstein)


    Hi I want to be able to reset a couple of fields back to their predefined zero value using a button is this possible without resetting the whole form?

    Thanks

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

    (@codepeople)

    Hello @zukenstein

    In this case, you must set the values directly. For example, if you want to clear the fieldname1 field, you can use the following piece of code:

    
    jQuery('[id*="fieldname1_"]').val('').change();
    

    Now, you can do the same with other fields in the form.

    Best regards.

    Thread Starter zukenstein

    (@zukenstein)

    Thanks for that ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Reset some fields’ is closed to new replies.