Forums

ReCaptcha in a form with URL Action

toddmartin 14 Aug, 2020
I have been trying to add a ReCaptcha in a form but I get mixed results.
I Created a form with Load | View with Form Area. In form area are my fields both to prompt the user and hidden to be passed to the action URL of the form. The Action URL in the form area is another application that I am posting data to. Everything with posting the data to this other application works. I get data validation on the fields and when submitted everything passes through. If I add the ReCaptcha the check to see if it passes is not done. I can bypass the Recaptcha when filling out the form and it will still get posted. If I take it out all the fields from the form area then it will check the fields and the recaptcha when submitting but then my Action to post to the URL never happens.

I tried to add Submit | Action with a ReCaptcha check but it doesn't seem to work. I added Actions to Save Data and send email but those don't trigger wither with the submit if I am using the form Area. How can I get both to work?
toddmartin 17 Aug, 2020
OK so I realize now that I can not have a form post if I want to do anything in the submit. Once the form submits Chrono no longer is involved. From what I can tell, I will need to use CURL to do the post. I have not been able to get this to work. I entered the URL but how do I tell it the data to post? How does Chrono pass -d "mydata to post" to to the URL being used to connect to?

I have three fields that are filled in by the user and 5 or so that are hidden that get past to the URL https://<FQDN>/submit?RuleID=
I can add all the parameters to the URL so it looks like https://<FQDN>/submit?RuleID=firstname={data:personfirstname}&lastname={data:personlastname} but then that isn't a POST.
toddmartin 18 Aug, 2020
OK I have given up and decided to make it work with Custom Code. I have a simple CURL posting my data and the posting is working except my data from the form is not being passed.

curl_setopt($ch, CURLOPT_POSTFIELDS,"firstname={data:firstname}");

When it passes through the field firstname shows a value of {data:firstname}. Yet when I echo {data:firstname} I get my value Todd
What am I missing?
Max_admin 18 Aug, 2020
you can use the CURL action to send the data behind the scenes or use a redirect to redirect the form to the new url, I suggest that you use the new v7, the interface should help you do what you need easier than in v6
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.