Hello @gregorr64,
Could you send me the link to the webpage where the form is inserted, please?
Best regards.
Hello @gregorr64,
Please, follow the instructions below:
Insert a “HTML Content” field in the form, and enter as its content the following piece of code:
<script>
fbuilderjQuery(document).one('showHideDepEvent', function(){
fbuilderjQuery('form[id*="cp_calculatedfieldsf_pform_"]')[0].reset();
});
</script>
and please, let me know if the issue persists.
Best regards.
Hi,
I’ve tried that and the issue is still there.
Thanks,
Gregor
Hello
My apologies, I see you are using the form into a WooCommerce product using the “CFF – WooCommerce” add-on. Actually, after the product is added to the cart the form preserves the fields values because the add-on has been implemented in that way. If you don’t want this behavior, please, follow the steps below:
1. Open the “/wp-content/plugins/calculated-fields-form/addons/woocommerce.addon.php” file with the text editor of your choice.
2. Go to the piece of code:
if(!empty($init_form))
and edit it as follows:
if(false && !empty($init_form))
Best regards.