Redirecting to a new page after filling out a form

  • 1
  • Question
  • Updated 5 years ago
  • Answered
I am trying to set up a form so that customers can register for classes and then be linked directly to the payment page from there. I've already had some help from another community member, but I must not have followed it correctly.

As per her instructions, I created a form using the Yola widget and then copied and pasted the HTML to create a duplicate form. I then edited the HTML in the duplicate form to add the line

onsubmit="location.href='pagetwo.php';"

Now the line looks like this.

But I am getting the error message

404. Sorry, we can't seem to find that page, click here to return to the homepage

once I fill in the captcha box at the bottom. I'm not sure what I've done wrong in my HTML. Any help would be greatly appreciated! :)
Photo of awieckert lll

awieckert lll

  • 10 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 1
Photo of Stefan

Stefan, Official Rep

  • 4448 Posts
  • 190 Reply Likes
Hello awieckert III

Well, I suppose you will need to replace "pagetwo.php" by the URL of your payment page. If this part doesn't include the real URL of your existing payment page, it will result in a 404 error.

I've seen the post where Crystal has been assisting you, and I think your best bet will be to ask her to follow up with you on this as I'm not sure how the option she has in mind will be working.
Photo of awieckert lll

awieckert lll

  • 10 Posts
  • 0 Reply Likes
Oh, I see that I copied and pasted the wrong information. This is what it actually says now.

Here's the URL to my page if anyone would like to see the HTML code and let me know where I've gone wrong.

I started the new question because the last response I got was three days ago. I did send her another message by e-mail recently, so I'm hoping to get a response there.
Photo of Stefan

Stefan, Official Rep

  • 4448 Posts
  • 190 Reply Likes
Hi awieckert III

Your URL is not visible. If you post it with http:// in front, it will be a visible and clickable link to your page.
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
Hello awieckert lll,

A very easy way to do all of this is by using Jotform. Jotform will allow you to create forms and redirect to a subsequent page on submission. It is a very easy and uncomplicated facility which allows free use for a reasonable number of submissions per month and beyond that there is a subscription plan. You can also link submissions to a spreadsheet on Google Drive which will act as your record and database collecting the submission fields as they are received.

You can also create a subsequent form for payment as Jotform has access to a number of payment gateways including PayPal. You could of course include this in the original form if you so wished.
Photo of awieckert lll

awieckert lll

  • 10 Posts
  • 0 Reply Likes
This was a great help! Thank you. I've created my form, embedded it in a hidden page, filled it out, got the submission, and everything works perfectly. :)
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
Glad you are on your way.