Email form URL overwrites Redirect URL

bsomav
1 Posts
bsomav posted this 02 March 2022
Ask a Question

Hi,

I have a Form to collect email addresses. For has two properties:
- submit URL to send the form data to, can be set in the SUBMIT section
- redirect URL to send the browser to after successful form action, can be set in SETTINGS section

When I set Submit URL, redirect URL will be the same.

What I want is to send form data to a server URL then redirect the browser to a page on my web server. These two URLs are different.

Regards,

Balazs

Hi, I have a Form to collect email addresses. For has two properties: - submit URL to send the form data to, can be set in the SUBMIT section - redirect URL to send the browser to after successful form action, can be set in SETTINGS section When I set Submit URL, redirect URL will be the same. What I want is to send form data to a server URL then redirect the browser to a page on my web server. These two URLs are different. Regards, Balazs
Vote to pay developers attention to this features or issue.
3 Replies
Order By: Standard | Newest
Support Team posted this 02 March 2022

Hi Balazs,

When you use the URL submit option, the redirect URL is the same as that is the action that is performed on the button click. And when you use the custom URL code, you need to add the redirect action into your script that you have assigned to the submit button.

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Balazs, When you use the URL submit option, the redirect URL is the same as that is the action that is performed on the button click. And when you use the custom URL code, you need to add the redirect action into your script that you have assigned to the submit button. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
scoetser
1 Posts
scoetser posted this 09 September 2023

Hi,
You mention that my script needs to assign the redirection action to the submit button. Can you explain how this is done?

In my case, I use your form to submit to a custom URL. This URL is a function (azure function) and currently returns status 200 with success: true in the body when email is sent. This displays the green box stating all was fine. However, I like to redirect to the home page if a success, what response should I return (header or body) so that your html page will redirect automatically? I tried setting the "location" header with status 302, but no luck. Using the developer tool in my browser, I can see my page redirection to hom, but nothing happens in the browser.

Thanks
Shane

Hi, You mention that my script needs to assign the redirection action to the submit button. Can you explain how this is done? In my case, I use your form to submit to a custom URL. This URL is a function (azure function) and currently returns status 200 with **success: true** in the body when email is sent. This displays the green box stating all was fine. However, I like to redirect to the home page if a success, what response should I return (header or body) so that your html page will redirect automatically? I tried setting the "location" header with status 302, but no luck. Using the developer tool in my browser, I can see my page redirection to hom, but nothing happens in the browser. Thanks Shane

Last edited 09 September 2023 by scoetser

Support Team
Support Team posted this 11 September 2023

Shane,

Please create a separate private case, providing your project and screenshots showing the issue.

...................................................
Sincerely,
Alan R.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Shane, Please create a separate private case, providing your project and screenshots showing the issue. ................................................... Sincerely, Alan R. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments