Page 1 of 1

Notification after sent the form

Posted: Sun Oct 15, 2017 8:13 pm
by mckonen
Hi, I'd like to add some notification after feedback form (not want to add "thanks"web page), l added modal layer to appear after push to sent button, but this disables the form, so not good, is there some trick for that?

br, Sami

Re: Notification after sent the form

Posted: Sun Oct 15, 2017 8:45 pm
by Pablo
Maybe this is helpful?
viewtopic.php?f=10&t=37833

Re: Notification after sent the form

Posted: Mon Oct 16, 2017 8:47 pm
by mckonen
Yes this works!
Is there other trick to clear the form data after closing the notification window?

Re: Notification after sent the form

Posted: Tue Oct 17, 2017 6:54 am
by Pablo
Maybe you can reload the page?

Re: Notification after sent the form

Posted: Tue Oct 17, 2017 7:24 pm
by mckonen
Yes with the short script (<input type="reset" value="Reset Form">) resets the form (without reset button), but it disables the other functions, so noticed that easiest is to link back to the page after closing the notification windows (internal page link onclick), Maybe this "clear datas" would be good to add as a basic optional for layer...

Re: Notification after sent the form

Posted: Wed Oct 18, 2017 9:23 am
by Biju
Just copy and paste the following script to your button's 'onclick event' and see it is working or not:

Code: Select all

document.Form1.reset();return true;
Note: Replace "Form1" with your form name.

Image

Re: Notification after sent the form

Posted: Wed Oct 18, 2017 4:25 pm
by mckonen
Hi, Yes this works, thanks!