Hello @dareko
Thank you very much for using our plugin. If your fieldset field is the fieldname1, the button click event could be:
jQuery('[id*="fieldname1_"] :input').val('').change();
Best regards.
Thread Starter
dareko
(@dareko)
Thank you very much for the quick answer (as usual).
Unfortunately the solution above also resets all input values in the form.
Best Regards
Darek
Hello @dareko
The solution reset all input values into the fieldset, but as I called the onchange event every equation that uses these fields is evaluated. If you want to reset the fields’ values without affecting the equations that use them, you can use:
jQuery('[id*="fieldname1_"] :input').val('');
Best regards.
Thread Starter
dareko
(@dareko)
The same result. It resets all input fields. Ater using it the calculator displays the predefined values of fields or null if there is no predefined value.
It is independent of evaluation – I add the “calulate button” and untick “Dynamically evaluate the equations” in the form settings.
Hello @dareko
Please, let me know where are you use the code exactly.
Best regards.
Thread Starter
dareko
(@dareko)
Hello @dareko
The issue is simple. You are using the code into a reset button. If it is a reset button, it will reset all your form’s fields and then runs the onclick event. You should select the “Button” option as the button’s type.
Best regards.
Thread Starter
dareko
(@dareko)
Eureka!
Now it works!
Thank you very much for the awsome support.
Best Regards
Darek