How do I redirect to a thank you page after "everyone on the internet" role submits a form?

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered

I have a form that I am sharing with everyone on the internet, but the results are private. When someone submits the form, they are brought to the database, and it says they do not have permission to view. How do I make it so that when they click submit, it brings them to a thank you for your submission page, or even just brings them back to the form to submit again?

Photo of Tanya

Tanya

  • 0 Points

Posted 3 years ago

  • 0
  • 1
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 62,316 Points 50k badge 2x thumb
The low tech way is to make a Form that just says Thank you for your order ..... and then set up the Forms usage tab so that the Everyone on the Internet role uses that form to View.  Then allow them to View all records.

ie one form to ADD and for Edit / View use the "Thank you" form with no actual fields.
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 29,894 Points 20k badge 2x thumb
Jean Has A Long Mustache ~ Add Record
https://haversineconsulting.quickbase.com/db/bksiwtfzc?a=nwr

Pastie Database
https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=500


What a terrific day - we hit 500 pasties today!

Update: replaced history.pushState( ) with history.replaceState( ) in thanks.html.
Photo of Richie Eyles

Richie Eyles

  • 92 Points 75 badge 2x thumb
Dan

I have implemented your suggestion here and it works for me, but it also redirects to the same page when you hit the cancel button. Is there a way to make sure the cancel button doesnt take you to the thank you page?
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 29,894 Points 20k badge 2x thumb
What page do you want the Cancel button to take you to? It isn't clear to me what page you would go to as I don't even know how the anonymous user navigated to the add record page in the first place.
(Edited)
Photo of Richie Eyles

Richie Eyles

  • 92 Points 75 badge 2x thumb
We give them a link from our website. Maybe we could open a fresh form if they cancel. Or send them back to the website .