• Resolved Radovan

    (@radovand)


    Hi.
    How can I create a calculate button and when the button is clicked the result of the calculation fields is displayed? If the button is not clicked, the result is not displayed.
    Best regards,
    Radovan D.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @radovand !

    Hope you’re having a good day!

    At the moment Forminator doesn’t include a functionality like this out of the box – the button for the form is a Submit button so the data will be immediately sent to be recorded in the database. Additionally, the Calculations field updates whenever any other field changes to allow creating forms for pricing, ordering etc.

    However, maybe you can share your specific use case so we can review it and see if we can help in any way?

    Warm regards,
    Pawel

    Thread Starter Radovan

    (@radovand)

    Hello,

    Let say we have the following fields in a form:

    {radio-1} with
    Option 1 = 10

    {radio-2} with
    Option 2 = 50

    {radio-3} with
    Option 3 = 100

    {calculation-1} = {radio-1} + {radio-2} + {radio-2}

    {calculation-1} will instantly show the amount and the result will be: 160

    The result is displayed as the radio type fields are checked.
    I want the result to be displayed only if and only when all fields have been checked.

    For example, if it is a test form, the test taker will see the final result as they complete the test.
    I want it to see the result only after it has ticked all the fields or only when he clicks on a button that displays the result of the calculation.

    Thank you,
    Radovan D.

    • This reply was modified 2 years, 8 months ago by Radovan.
    Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @radovand,

    Can you please check if the Page Break field works for your use case?

    With a Page Break field, you can paginate the form and place the radio buttons on page one and calculation fields on page two. So the calculation will show up only when the user navigates to the second part of the form.

    Please find more details here: https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#page-break

    Kind Regards,
    Nebu John

    Thread Starter Radovan

    (@radovand)

    Hello,
    Yes, in most cases the page break variant works.
    Thank you,
    Radovan D.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to set a calculate button?’ is closed to new replies.