On Submit go to Detail View

By: Will J | Asked: 06/27/2023
ForumsCategory: General questionsOn Submit go to Detail View
Will J asked 1 year ago
Hello! Hoping to figure out how to get the form to go to the Detail View after pressing submit. By default, it stays on the same page and just says "Your responses were successfully submitted. Thank you!", but I want it to go directly to the Detail View of the new form entry. Lil' help? Thanks!
Rob LeVineRob LeVine replied 1 year ago

First you have create a view and fill in whatever you want for the detail tab of the view. Then you can set up your form's Confirmation action to redirect to the URL you need to display the detail view. See here - https://formidableforms.com/knowledgebase/general-form-settings/#kb-on-submit

Asking for A Friend replied 1 year ago

Thanks! That was staring me right the face, huh? LOL Still trying to work out how to make it go straight to the detail page of the newly created entry as the entry # would only just be created upon submission of the form, but, hopefully with this info, I'll find the way! Thanks again!

Victor Font replied 1 year ago

It will work exactly as you want with the redirect that Rob explained. The entry ID is created by the time the redirect takes place. Include the entry id as a query string parameter for the redirect URL. Then, in your view filter use entryid = [get param=my-parameter-name].

Here's an old YouTube video I created that explains redirects and query strings: https://www.youtube.com/watch?v=jO6NqXz4bFA

Asking for A Friend replied 1 year ago

Thanks Victor! Last question (I hope!): How would one "include the entry id as a query string parameter for the redirect URL"?
I've tried a bunch of different wording and no luck! Thank you!

Rob LeVineRob LeVine replied 1 year ago

Follow the instructions here https://formidableforms.com/knowledgebase/form-confirmation/#kb-redirect-to-url
and then add your parameters to the URL, If you want the id, add something to the effect of ?entryid=[id] making sure the parameter name matches the [get param...] you use in the view filter.

Asking for A Friend replied 1 year ago

Got it!
mysite..../entry/?entry=[id sanitize_url=1]
That now gets you to the detail page! Yay!
Thanks so much!!!

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right