Hello @mevabien22
* If you want the equations be evaluated only after pressing a button:
– Untick the checkbox: “Eval dynamically the equations associated to the calculated fields”, in the “Form Settings” tab (https://cff.dwbooster.com/images/documentation/form-settings-tab.png)
– And then, in the button field, select the “Calculate” option as the button’s type.
* If you want the calculated field remains hidden until the button be pressed:
Pay attention, DO NOT tick the checkbox: “Hide Field From Public Page” in the settings of the calculated field for hidden it, because if it is ticked the field would be inserted as an input tag with type="hidden"
, and wouldn’t possible to display at runtime.
– Enter the special class name: hide
through the “Add CSS Layout Keyword” attribute of calculated field.
– Enter as the onclick event of calculate button, the following piece of code:
jQuery('.hide').removeClass('hide');
Best regards.