• Resolved bernard57

    (@bernard57)


    I have a 3 button selection which reveals and hides some fields in my form. I want to make sure all fields are cleared when a different radio button is selected. Can I do that?

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

    (@codepeople)

    Hello @bernard57

    Thank you very much for using our plugin.

    In radio buttons, you can configure dependencies (https://cff.dwbooster.com/blog/2020/03/01/dependencies). If you want to hide the fields by ticking one of the radio button choices, you only need to configure the form fields as dependent on the other choices.

    But if you want to reset the form by ticking a choice in the radio buttons field, you can use a calculated field as an auxiliary. For example, assuming the radio buttons field is the fieldname1, and you want to reset the form when the user selects the choice with the value ABC, insert a calculated field in the form (you can configure it as hidden by ticking a checkbox in its settings), and enter the equation:

    (function(){
    if(fieldname1 == 'ABC') RESETFORM();
    })()

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Clear form on radio selection’ is closed to new replies.