Can't get through recapcha on forms

jtlodi
18 Posts
jtlodi posted this 30 March 2020
Ask a Question

I tried to set up a very simple contact form. I did enter the recaptcha v3 site key and secret key but I keep getting an error saying I need to fix my error when I try to submit the form. Attached is my project files.... how can I determine what caused the error?

If this problem is connected to the recaptcha feature, why don't you make it optional? For my purposes I don't need it at all. It just gets in the way.

I tried to set up a very simple contact form. I did enter the recaptcha v3 site key and secret key but I keep getting an error saying I need to fix my error when I try to submit the form. Attached is my project files.... how can I determine what caused the error? If this problem is connected to the recaptcha feature, why don't you make it optional? For my purposes I don't need it at all. It just gets in the way.
Vote to pay developers attention to this features or issue.
7 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 30 March 2020

Hi,

reCAPTCHA should not be related to this issue.
Please note that you cannot send email from the Nicepge Desktop application or browser preview directly. Email sending is a server-side functionality. Therefore the website should be located on the server (remote or local) that supports email sending.

...................................................
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

Hi, reCAPTCHA should not be related to this issue. Please note that you cannot send email from the Nicepge Desktop application or browser preview directly. Email sending is a server-side functionality. Therefore the website should be located on the server (remote or local) that supports email sending. ................................................... 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
jtlodi
18 Posts
jtlodi posted this 30 March 2020

Thanks Olivia,

I really don't care about sending email. I wrote a PHP script which I put on the server and pointed the form of the NicePage form action to that file. All that file does is throw up a message saying it received something from the website. But I can't get the submit button on the NicePage form to get past telling me there is something wrong with my inputs when filling out the NicePage form. It doesn't tell me what the problem is.

All I want to do is collect some form information, hit the submit button, and have the page send it to my PHP script.

Thanks Olivia, I really don't care about sending email. I wrote a PHP script which I put on the server and pointed the form of the NicePage form action to that file. All that file does is throw up a message saying it received something from the website. But I can't get the submit button on the NicePage form to get past telling me there is something wrong with my inputs when filling out the NicePage form. It doesn't tell me what the problem is. All I want to do is collect some form information, hit the submit button, and have the page send it to my PHP script.
Support Team
Support Team posted this 13 April 2020

James,

It may be related to your custom PHP script.

  1. Please enter a valid email address to Email and From fields.
  2. Export project as HTML.
  3. Upload it to your site and check if this works for you.
Untitled.png

...................................................
Sincerely,
Chris
Nicepage Support Team

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

James, It may be related to your custom PHP script. 1. Please enter a valid email address to Email and From fields. 2. Export project as HTML. 3. Upload it to your site and check if this works for you. !Untitled.png! ................................................... Sincerely, Chris Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
jtlodi
18 Posts
jtlodi posted this 14 April 2020

Attached is a very small project I set up to see if my NicePage html page could communicate with my php script. I've turned off all input fields as being "required". All 3 input fields are "text" fields. Here's my phptest.php file contents:

<?php input coming from nicepage $name $address $message echo "message sent from:?><br>";
echo "Address: ".$address."<br>";
echo "Message: ".$message."<br>";
?>

Whenever I submit the form, I get an error "Unable to send your message. Please fix errors then try again."

You throw up an error message but there's no indication of what's wrong. I suspect there is something happening in the nicepage.js file. ... I did a test, commenting out the line:

script class="u-script" type="text/javascript" src="nicepage.js" defer="">

... and the submit button doesn't work without it, so your error checking must be in that .js file.

Can you please give me some guidance?

Attached is a very small project I set up to see if my NicePage html page could communicate with my php script. I've turned off all input fields as being "required". All 3 input fields are "text" fields. Here's my phptest.php file contents: **&lt;?php input coming from nicepage $name $address $message echo &quot;message sent from:?&gt;&lt;br&gt;"; echo "Address: ".$address."&lt;br&gt;"; echo "Message: ".$message."&lt;br&gt;"; ?>** **Whenever I submit the form, I get an error "Unable to send your message. Please fix errors then try again."** You throw up an error message but there's no indication of what's wrong. I suspect there is something happening in the **nicepage.js** file. ... I did a test, commenting out the line: **script class="u-script" type="text/javascript" src="nicepage.js" defer="">** ... and the submit button doesn't work without it, so your error checking must be in that .js file. Can you please give me some guidance?
Support Team
Support Team posted this 15 April 2020

Hi,

We provided a sample code for email sending here:
https://nicepage.com/doc/article/25066/how-to-create-a-simple-html-contact-form-in-nicepage-website-builder
It contains a part about sending a successful message.

Please note that at this moment Nicepage includes ready action script for email sending.

...................................................
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

Hi, We provided a sample code for email sending here: https://nicepage.com/doc/article/25066/how-to-create-a-simple-html-contact-form-in-nicepage-website-builder It contains a part about sending a successful message. Please note that at this moment Nicepage includes ready action script for email sending. ................................................... 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
jtlodi
18 Posts
jtlodi posted this 15 April 2020

Thanks Olivia,
Is seems from the replies I get on this topic, that you think I am interested in sending emails. I am not interested in sending emails just form data. I just want to send an input variable to my php scrip to see if I can get it working. The problem I'm having is that something in your nicepage.js file is throwing this error message .... and form submission can't happen:

Unable to send your message. Please fix errors then try again

Isn't it possible for you to have someone look into the simple files I previously sent and tell me what I did that generated the error.There is no other way to troubleshoot this!

Apparently you've taken control of the submit button in nicepage.js, I think that is a mistake. As a coder, I want to write code that makes sure my submissions follow my rules. With the way things are now, I don't know what the rules you've setup are. There's no way for me to help myself out of this problem.

I can tear the form inputs out of the NicePage.html file and put them into another .html file that doesn't use nicepage.js and everything works.

I guess it's nice you're trying to protect some of your users from themselves but I would encourage you to take form submission error checking out of nicepage.js .... the way it is, I feel I'm cut off at the knees.

Thanks for reading this ... stay safe!

Thanks Olivia, Is seems from the replies I get on this topic, that you think I am interested in sending emails. I am not interested in sending emails just form data. I just want to send an input variable to my php scrip to see if I can get it working. The problem I'm having is that something in your nicepage.js file is throwing this error message .... and form submission can't happen: **Unable to send your message. Please fix errors then try again** Isn't it possible for you to have someone look into the simple files I previously sent and tell me what I did that generated the error.There is no other way to troubleshoot this! Apparently you've taken control of the submit button in nicepage.js, I think that is a mistake. As a coder, I want to write code that makes sure my submissions follow **my rules**. With the way things are now, I don't know what the rules you've setup are. There's no way for me to help myself out of this problem. I can tear the form inputs out of the NicePage.html file and put them into another .html file that doesn't use nicepage.js and everything works. I guess it's nice you're trying to protect some of your users from themselves but I would encourage you to take form submission error checking out of nicepage.js .... the way it is, I feel I'm cut off at the knees. Thanks for reading this ... stay safe!
jtlodi
18 Posts
jtlodi posted this 07 August 2020

I still haven't received a satisfactory answer to my questions above. What I want to do is simple .. just send a form variable to a PHP script let that script do something with it. You keep telling me to enter a 'valid email address'. All I want to do is enter a URL to my PHP script. An email address has nothing to do with this issue. NIcepage.js has taken control of the submit button, and as I've said before, your software does a nice job of web page design but you have no business messing with form controls. You are painting yourself into a corner.

I still haven't received a satisfactory answer to my questions above. What I want to do is simple .. just send a form variable to a PHP script let that script do something with it. You keep telling me to enter a 'valid email address'. All I want to do is enter a URL to my PHP script. An email address has nothing to do with this issue. NIcepage.js has taken control of the submit button, and as I've said before, your software does a nice job of web page design but you have no business messing with form controls. You are painting yourself into a corner.
You must log in or register to leave comments