• Resolved mevabien22

    (@mevabien22)


    I would like the results of a:

    Field Type: Calculated Field

    are displayed only after pressing a

    Field Type: Button

    How would be the procedure?

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    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.

    Thread Starter mevabien22

    (@mevabien22)

    It works perfect!

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show results only after pressing the button’ is closed to new replies.