The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group

Slack Signup
Newsletter Optin
Help Desk

How to insert form field data into success/confirmation page

Labels

This Discussion is public

Notifications

I wonder if someone could break down in simple terms for me, just how to pass data from a Contact Us form, to a success/confirmation page. I want the success page to be personalized with the submitter's first name in the salutation, as well as the contact information of either myself or whichever team member's page the form was submitted from, as the signature. I have spent quite a few hours trying to get this done by sending the data via URL, without success. The Contact Form has a field called  "first_name", and a hidden field called "owner" (signature).

In the most recent iteration, I have the form settings as:

On Submit: Redirect to URL: https://mysite.com/confirm?first_name=%5B79%5D&owner=%5B83%5D

The success page has its settings as:

"Hi [get param="79"], thanks for...Sincerely, [owner="83"]"

Nothing that I've tried have worked and I'm getting a bit frustrated. Any help with getting this to work would be greatly appreciated.

Thanks.

Read through these directions: https://formidableforms.com/knowledgebase/email-notifications/

Instead of using the default message, write your own message and insert the fields you want in their places. It's just like creating a mailmerge template with a word processor.

Hi CSmith - I think you might be able to get what you're looking for via a different approach. On the form's General page, for the On Submit option, choose Show Message (instead of Redirect). Then, at the bottom of that screen in the Messages section, the On Submit box, use the shortcodes for the fields that you want - similar to how you have here but without the getparam thing. Instead, the field ID numbers themselves should do the trick.

 

So, something like this:

"Hi [123], thanks for...Sincerely, [456]"

where 123 is the field ID for the first_name field, and 456 is the field ID for the owner field.

The instructions that Victor pointed you towards have more details on how to construct that out - as he said, it's a similar concept to a mailmerge function.

Does that help?

 

Thank you both for your welcomed input. I originally had the form setup as esadmin advised, but I wanted the success message to be rendered on an actual confirmation page, instead of within the form itself, which I have been able to do.

This is what I have in the Messages box>On Submit:

----

Hi [79]!
Thank you for requesting additional information. I will contact you shortly to discuss our program options.

Chat soon.

Regards,
[83]

-----

The question then is: How do I get this message to render correctly on http://www.mysite.com/confirmation (page)? What are the codes that I need to use there to pull the data?

Thanks so much.

Have you tried passing the values from the contact us form to the new page via the URL?

Take a look at this, i use this to redirect and display values in a single view which is posted on a new page.

https://formidableforms.com/knowledgebase/create-custom-search-form/

Try creating a confirmation page, copy the new URL into the redirect input field in the forms settings then use http://www.mysite.com/confirmation/?field1=[x]&field2[y]&field3=[z] // change x,y,z to the id of the fields.

then in your view use [get param=field1] [get param=field2] [get param=field3] to display the values, you can also use the conditionals to display the data according to other values.

After reading your post again i can see you have tried this, however the code you have provided on the success page

"Hi [get param="79"], thanks for...Sincerely, [owner="83"]"

Try

Hi [get param=first_name], thanks for...Sincerely, [get param=owner]

Chris

Discussion closed.