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

    (@codepeople)

    Hi,

    There is not a button specifically for it, but can be obtained in a very easy way.

    1. Insert a DIV field in the form, and includes into this field, the first set of calculated fields.

    2. Insert a second DIV field in the form, and includes into this field, the second set of calculated fields.

    3. Assign to the second DIV a custom class name through the attribute: “Add Css Layout Keywords”, only to identify the field from the code. For example: myclass

    4. Insert a button in the form, but outside of previous DIV tags. And finally, enter in the onclick event of the button, the following code:

    jQuery(‘.myclass’).show();

    and that’s all.
    Best regards.

    Thread Starter aespada

    (@aespada)

    How can I hide it and show when the button is clicked?

    Plugin Author codepeople

    (@codepeople)

    Hi,

    I’m sorry, I’ve forgotten to explain this part of the process, the new class: .myclass, should be defined in any of the CSS files in your website like follow:

    .myclass{display:none;}

    So, the DIV field would be hidden by default, and would be displayed after pressing the button.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Add Calculation’ is closed to new replies.