Submit form with 'Thank you for your email' message

Issues related to forms.
Post Reply
lue5
 
 
Posts: 24
Joined: Mon Nov 06, 2017 8:37 am

Submit form with 'Thank you for your email' message

Post by lue5 » Wed Feb 07, 2018 3:53 pm

Hi Pablo,

How do I include a pop-up 'Thank you for your email' once submit button clicked?


Thanks

User avatar
Pablo
 
Posts: 18410
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Submit form with 'Thank you for your email' message

Post by Pablo » Wed Feb 07, 2018 5:01 pm

You can specify a 'thank you page' in the properties of the form (success page).

lue5
 
 
Posts: 24
Joined: Mon Nov 06, 2017 8:37 am

Re: Submit form with 'Thank you for your email' message

Post by lue5 » Wed Feb 07, 2018 5:08 pm

Hi Pablo,

Beside creating another page, how about javascript?

User avatar
Pablo
 
Posts: 18410
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Submit form with 'Thank you for your email' message

Post by Pablo » Wed Feb 07, 2018 5:41 pm

You can use events to trigger JavaScript.
Note however that this may affect the standard behavior of the form.

Related FAQ:
https://www.wysiwygwebbuilder.com/forum ... 10&t=37833

lue5
 
 
Posts: 24
Joined: Mon Nov 06, 2017 8:37 am

Re: Submit form with 'Thank you for your email' message

Post by lue5 » Thu Feb 08, 2018 2:30 am

Hi Pablo,

Mean, to avoid the standard form function from not working properly, best way to do it is by creating success page.

Even if I change to return true; the standard form will be having problem to received any submission later.

lue5
 
 
Posts: 24
Joined: Mon Nov 06, 2017 8:37 am

Re: Submit form with 'Thank you for your email' message

Post by lue5 » Sat Feb 10, 2018 3:29 am

onsubmit="return ValidateForm1(this)" onclick="alert('Thank you for your email');return true;">

correct script?

User avatar
Pablo
 
Posts: 18410
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Submit form with 'Thank you for your email' message

Post by Pablo » Sat Feb 10, 2018 8:23 am

No, the onclick event should be added to the button.

lue5
 
 
Posts: 24
Joined: Mon Nov 06, 2017 8:37 am

Re: Submit form with 'Thank you for your email' message

Post by lue5 » Sat Feb 10, 2018 9:43 am

<input type="submit" id="Button1" onclick="alert('Thank you for your email');return true;" name="Send" value="Send" style="position:absolute;width:96px;height:25px;>


like this?

User avatar
Pablo
 
Posts: 18410
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Submit form with 'Thank you for your email' message

Post by Pablo » Sat Feb 10, 2018 10:57 am

Yes, that might do what you are looking for.

lue5
 
 
Posts: 24
Joined: Mon Nov 06, 2017 8:37 am

Re: Submit form with 'Thank you for your email' message

Post by lue5 » Sat Feb 10, 2018 11:49 am

Appreciate for the sharing Pablo.

Cheers

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests