• Resolved baylor01

    (@baylor01)


    Is it possible to make the user click on the Submit button before a calculated field is shown?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter baylor01

    (@baylor01)

    Actually the field should be visible, only the calculation should be calculated after clicking on Submit.

    Plugin Author codepeople

    (@codepeople)

    Hello @baylor01,

    Yes, that’s possible. Please, configure the form as follows:

    – Create a new page in your website to be used as thank you page associated to the form (the webpage where the user is redirected after submit the form), and insert into its content the shortcode for the results:

    [CP_CALCULATED_FIELDS_RESULT]

    – Enter the URL to this webpage into the attribute: “Thank you page” in the form’s settings.

    – Finally, select the calculated field in the form, and tick the checkbox: “Hide Field From Public Page” in the field’s settings.

    And that’s all. Now the results of calculated field would be visible only in the thank you page, after the user submits the form.

    Best regards.

    Thread Starter baylor01

    (@baylor01)

    Is it possible to only show a single field on the thank you page, not all fields?

    Thanks

    Thread Starter baylor01

    (@baylor01)

    For example, only show the results in this field: <%fieldname11%>

    Plugin Author codepeople

    (@codepeople)

    Hello @baylor01,

    Yes of course. For example, assuming the calculated field is the fieldname11, you can insert the shortcode as follows:

    
    [CP_CALCULATED_FIELDS_RESULT fields="fieldname11"]
    

    or if you need more control with the output, for example, to display the label in bold and the value in italic:

    
    [CP_CALCULATED_FIELDS_RESULT]
    <p><b><%fieldname11_label%>:</b> <i><%fieldname11_value%></i>
    [/CP_CALCULATED_FIELDS_RESULT]
    
    

    More information in the following links:

    https://cff.dwbooster.com/documentation#thanks-page
    https://cff.dwbooster.com/documentation#special-tags

    Best regards.

    • This reply was modified 6 years, 4 months ago by codepeople.
    Thread Starter baylor01

    (@baylor01)

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Show calculated field after Submit’ is closed to new replies.