where is the script that creates the success/failure signal after form submit

v.piasta
31 Posts
v.piasta posted this 28 December 2022
Ask a Question

Can anyone explain how the success/failure message after a form submission works in detail?

I am trying to use a form originally created with nicepage with a different PHP script, so the submission does not send an email but executes a different evaluation.
On the original page, there are two divs for success and failure that have CSS style = "display: none:" and one of them is displayed after submission. Apparently, the javascript that changes their display status is in nicepage.js. It is too complex for me to analyze. So, maybe someone can tell me what exactly makes a submission a "success" or a "failure".
In other words, what is this script testing when a form is submitted and how can I simulate this from my own PHP script?

Can anyone explain how the success/failure message after a form submission works in detail? I am trying to use a form originally created with nicepage with a different PHP script, so the submission does not send an email but executes a different evaluation. On the original page, there are two divs for success and failure that have CSS style = "display: none:" and one of them is displayed after submission. Apparently, the javascript that changes their display status is in nicepage.js. It is too complex for me to analyze. So, maybe someone can tell me what exactly makes a submission a "success" or a "failure". In other words, what is this script testing when a form is submitted and how can I simulate this from my own PHP script?

Last edited 28 December 2022 by v.piasta

Vote to pay developers attention to this features or issue.
1 Reply
Order By: Standard | Newest
Support Team
Support Team posted this 29 December 2022

Hello,

The messages are displayed relative to the response received from the server after the form submission. Please check the example provided in this article("Show a javascript message about the successful or unsuccessful sending a message"):
https://nicepage.com/doc/25066/sample-scripts-to-send-emails
This may help.

...................................................
Sincerely,
Olivia
Nicepage Support Team

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

Hello, The messages are displayed relative to the response received from the server after the form submission. Please check the example provided in this article("Show a javascript message about the successful or unsuccessful sending a message"): https://nicepage.com/doc/25066/sample-scripts-to-send-emails This may help. ................................................... Sincerely, Olivia 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