App Connect reCAPTCHA Support Product Page

Not a problem

Form Action getting Blocked by reCAPTCHA

Reported 17 Nov 2017 22:14:05
1
has this problem
17 Nov 2017 22:14:05 Todd Langhill posted:
I have purchased reCAPTCHA 2 and followed the vague instructions on your site and all it does is block the form mail action (ASP) from completing. Is there better set of instructions to set this up? I have downloaded all of the required plug ins as per your website and still no luck.

Thanks

Replies

Replied 18 Nov 2017 12:30:28
18 Nov 2017 12:30:28 Teodor Kuduschiev replied:
Hello,
Vague instructions? The instructions are as detailed as possible ...
Please provide a link to your page and also explain what exactly do you need to achieve?
Replied 28 Nov 2017 19:14:52
28 Nov 2017 19:14:52 Todd Langhill replied:
Hello Teodor,

Sorry for the lateness of my response, the holiday got in my way.

What I mean by vague, is that I read through all of the information before I purchased the plug in on this page which said that I need the following items.

www.dmxzone.com/go/32921/app-connect-recaptcha

Required Extensions: DMXzone App Connect, DMXzone Server Connect

I downloaded both of these items, install on Dreamweaver CS6 (like instructed for an ASP form/page), got the codes from Google as explained, and set up the properties and server side as instructed. I double checked all of the files were uploaded and the number was correct and the form would still send even if the box was not checked. I watched the video with the computer voice with no luck. I then had to dig into your site and I came across www.dmxzone.com/go/32332/dmxzone-recaptcha-2-manual/32333/protecting-your-forms-from-spam which said I need to install server action executor, which I did. (This example on this page is a PHP form and I am using an ASP form, I am assuming that they are the same procedure?) Now the reCaptcha works but does not allow the form to be submitted.

www.gscdeltachi.com/update_test.asp

If I take the server action executor out the form, it works whether I click the reCaptcha or not? I have search through your site for hours and I cannot find any help with this?

Can you help?

Thanks,
Todd
Replied 06 Dec 2017 17:50:50
06 Dec 2017 17:50:50 Todd Langhill replied:
Can anyone help me with this? It has been over a week. Thanks
Replied 07 Dec 2017 08:14:20
07 Dec 2017 08:14:20 Teodor Kuduschiev replied:
Hi Todd,
DMXzone Recaptcha 2 is being used with the server action executor as on your page. Server action executors override the default form action ... they are not supposed to be used like that with some 3rd party form scripts.
Anyway, you can do the following. In server action executor -> behaviors -> on success, click the “add custom code” prntscr.com/aik2cu and add the following code, so your form can post the variables to the next page:

$('#update')[0].submit()

This will run your custom form action.
Replied 28 Dec 2017 00:36:40
28 Dec 2017 00:36:40 Todd Langhill replied:
Thanks but it is still blocking the Post Action on the form. I have deleted all of the steps and reinstalled with no luck.

www.gscdeltachi.com/update_test.asp
Replied 14 Apr 2021 00:31:59
14 Apr 2021 00:31:59 User  replied:
I know this post is over three years old but I have the similar situation and sorry but I agree with Todd, the instructions are a little vague but here is what my form does:
- My form (without reCAPTCHA added) would ask for all the input when the user click on "Submit" it would go to a Thank You page and Email us the form info.
- I tried to add the reCAPTCHA based on the info in your instructions and I get an error about it couldn't change the code because of template, etc. (I have submitted that a couple of times and have never heard back.
- I then start with very simple form with no extra code and I added the reCAPTCHA code and it also replace my "<form action="/company/contactus/thank-you.php" method="post">" with your code "<form action="../../dmxConnect/api/reCAPTCHA.php" method="post" id="serverconnectform1" is="dmx-serverconnect-form" site="undefined">" and now when I click on the "Submit" with the "I'm not a robot" check or not check, I get the same result ... nothing happening, no error, no message "Recaptcha check failed.", nothing. I even tried to add a "Redirect step to go to my "Thank You page" which tell the user Thank you and Email us the info, nothing.
- I know it wasn't much ($48 US) but if you pay for something it should work or you should be able to get support.
- Here is the link to my form "www.tbsconsultants.com/company/contactus/tbsform.php"
- here is the link to my Thank You page "www.tbsconsultants.com/company/contactus/TBSthank-you.php"

Let me know what I need to do to get this work.

Thanks.
Replied 14 Apr 2021 06:29:46
14 Apr 2021 06:29:46 Teodor Kuduschiev replied:
How is your server action set up? Are you sure you properly added the recaptcha there? Did you add the API key there as well?
Replied 14 Apr 2021 18:14:32
14 Apr 2021 18:14:32 User  replied:
I am not sure I understand what you means when you asked "How is your server action set up?" but I'll try. Under DMXzone Server Connect I have under Steps, 1st "step" is reCAPTCHA Validate recaptcha1 and its properties has Name - recaptcha1; Secret Key - a cut and paste of the Google secret key; Message - TBS Recaptcha check failed. (I changed the name a little bit to see if this message actually showed or it was some default message - well, in my case nothing showed). I also added a second step of a Redirect /company/contacus/TBSthank-you.php trying to get my Thank You page to come up which gives the user a thank you message PLUS it does the actual sending of the Email. And yes I clicked on "Save" to send it to the Server. Since I own the server I checked on the server and the file is there.

Please help me. I have ordered other stuff from you yesterday and hope using those extension are a little bit easier to implement.

If you want to give me your Email address I can send you screen shots of everything if that will help. My Email is

Thanks again,
Replied 15 Apr 2021 09:39:58
15 Apr 2021 09:39:58 Teodor Kuduschiev replied:
Oh ... you can't do redirects like that in the server action.... it is for server-side redirects only!
From what i see on your link your form submits correctly and the captcha validation works correctly. Remove this redirect step from the server action.

My question is - what exactly are you trying to achieve?
Replied 15 Apr 2021 16:27:57
15 Apr 2021 16:27:57 User  replied:
The primary goal is to have reCAPTCHA actually work. My very basic test form's link is: www.tbsconsultants.com/company/contactus/tbsform.php If you fill in all the required fields (and DO NOT check the box "I'm not a robot" nothing happens - no message, nothing. If I check the "I'm not a robot" box and click Submit, still nothing happens. If you wait period of time, maybe a minute, after you click submit with the check box checked you will get an error "Verification expired. Check the checkbox again."

The secondary goal is to do what this original form did (the original form is this form but with all the heading and footing stuff put in to the form - starting with the original form without making any changes first and trying to use the extension I would get an error about it couldn't add it because it couldn't change the code. so I start with a blank page and pasted in just the basic form.), the original form, which is on the website right now (www.tbsconsultants.com/company/contactus/), after you fill in the form correctly will automatically go to a "Thank You" page and Email us the user's input.

After I added reCAPTCHA logic, using your extensions, it replaced the original "form action="..." with reCAPTCHA" and my "action" is not reference anywhere that I can see. Therefore I can't see how it could go to the our "Thank You" page which would Email us the user's info.

Here is the original line of code that was changed "<form action="/company/contactus/TBSthank-you.php" method="post">"

What am I missing?

Here is the code after installing reCAPTCHA: (BTW: What does "undefined" mean in the code site="undefined"?) Should it be our domain/website? tbsconsultants.com

*** Note: I tried to add the actual code here but your firewall stuff didn't like it.
Replied 15 Apr 2021 17:21:29
15 Apr 2021 17:21:29 User  replied:
I would like to send you my code but your firewall is complaining about it, probably because it is actual code. If you tell me how to send it to you I will.
Replied 16 Apr 2021 06:56:59
16 Apr 2021 06:56:59 Teodor Kuduschiev replied:
I think you don't fully understand how this works.
The form action is the server action where you define your server side logic. In your server action you only have a recaptcha step, no mail send, no other action. So that is why "nothing happens" - the form just gets validated and the server action runs, but it runs without any other step inside it.

I don't need the code as i can see everything i need in the browser and browser's dev tools.
Replied 16 Apr 2021 15:00:32
16 Apr 2021 15:00:32 User  replied:
I’m a little or make that a lot confused. When I click submit without the reCAPTCHA box checked I still get nothing. I would expect it to say the message statement “reCAPTCHA failed”. Do I need to add logic to test for an invalid reCAPTCHA and respond to the user or is that automatic?

When I installed this reCAPTCHA logic, you replaced the form’s action with the reCAPTCHA’s server side logic but my previous action went where ??? Couldn’t you placed it automatically where it would make the form work like it did before without the reCAPTCHA was added? That would have been real nice.

It would have been nice to have a little bit more instructions on what to do to really make the form work just like it did. Like, “Now that you have inserted the reCAPTCHA logic now you need to do testing on the results to determine what to do if the reCAPTCHA fails or was valid. If the reCAPTCHA was valid, put your previous form’s action in the server side action like this ...”

I guess my simple questions is “Where and HOW do I insert my previous form action? How would I give the user an error message if the reCAPTCHA wasn’t valid? Will this new logic also send the form’s data/input from the form along without me to code move stuff? Like it did before.

Basically I want, if the reCAPTCHA was successful, it to go to another webpage, which was my previous form’s action page, and it will do what I want it do to (Email me the info, give the user a Thank You message, etc.).

Thanks and I do appreciate you sticking with me through all of this. Hopefully I will get my “aha moment” soon and you will be done with me ... with this extension at least.
Replied 18 Apr 2021 14:51:31
18 Apr 2021 14:51:31 Teodor Kuduschiev replied:
The recaptcha component requires you to use our front end (App Connect) and back end (Server Connect) frameworks.

You can't simply "insert my previous form action?" That is not how it works. You cannot just add a component requiring our backend framework (Server Connect) on a random form using some random action.

The Server Action used as a form action is not for recaptcha only! In your server action you define your logic - send email, store records in the database etc. so you need to add the steps you want there. The recaptcha step there is needed to protect your form from spam.
Replied 18 Apr 2021 16:44:58
18 Apr 2021 16:44:58 User  replied:
Thanks. I didn’t realize to add your reCAPTCHA logic it would require this much work to implement, I was just hoping a more of a plug and play. Now that I know I will look at the Server Connect side of things. Is there any documentation on what each of your server side actions do and how to use all of them and what each parameter option are and what they do? Thanks again for everything.
Replied 24 Apr 2021 03:56:03
24 Apr 2021 03:56:03 User  replied:
I looked at the server side things and tried to add the Email logic and then realized I had to buy more extensions. The documentation doesn’t really stress to make it work you also need to purchase more stuff. Since I couldn’t get it to work without purchasing more extension I decided to do it the old fashion way. I found a good youtube video with decent instructions and I got it to work using my existing server side with a little change to use session variables. Sorry but I couldn’t get your reCAPTCHA logic to work without purchasing more extensions. I really feel it should have explained clearer what really is required to make it work like an existing form works. For example, “If you want to store the results in a database then you should purchase ...., If you want to send an Email of the results then you should purchase ...”.

Anyway, I didn’t use your reCAPTCHA logic and now I do not need it. Is it possible to get a refund of my $48 back? If not, I would understand and no hard feelings.

BTW, I purchased your transition extension and it worked fine and your instructions were fine. I do wish I know what some of the other fields are and how to use them but I’ll play around with them.
This reply was removed on 12/5/2021 12:48:58 PM.
See the changelog

Reply to this topic