PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Conditional Logic ON Confirmation Page

  1. guigrrl
    Member

    On my form I have a list of questions, if you click "yes" to any of these answers and click submit, I would like to display static text related to that "yes" on my confirmation page.

    Is this possible?

    Thanks!

    Posted 14 years ago on Monday June 27, 2011 | Permalink
  2. Currently the confirmation text does not support conditional confirmation messages or conditional statements within the confirmation message. If you needed to do something more complex you would have to create your own custom confirmation page and configure Gravity Forms to redirect to that confirmation page. You could then pass the form field data to that confirmation page and use code to do whatever you want with it as far as conditionally displaying text based on field values.

    Posted 14 years ago on Monday June 27, 2011 | Permalink
  3. guigrrl
    Member

    OK that makes sense -- any hints as to how I would do that?
    Thanks!

    Posted 14 years ago on Monday June 27, 2011 | Permalink
  4. You would have to know how to read and process query string values. You would create a custom page template that uses PHP to read the query string values and display data based on the values that are passed to it. You would then configure your Gravity Forms Confirmation so it uses the URL Redirect, enter the full HTTP URL to a page using your custom page template and then use the query string builder to pass form field values to this page.

    Posted 14 years ago on Monday June 27, 2011 | Permalink
  5. guigrrl
    Member

    Thanks, Carl. I have a php programmer that I use that I'm sure can help me with this. Thanks!

    Posted 14 years ago on Wednesday June 29, 2011 | Permalink