Clear form on radio selection

[ad_1]

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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer