Verification is broken with hard coded POST URL
Permalink Browser Info Environment
Found another problem with hardcoding the POST URL – the form verification doesn't work. It also sends a form even if nothing has been filled out. I am hoping your lack of response to previous support questions is only temporary, we really need you back to address some of these issues. You have the best form addon for C5, together we are all making it even better.
Type: | Ticket |
---|---|
Status: | Archived |
What does this error mean and how can I fix it?
I checked the host and they had me insert
In the .htaccess file. I tried the form again and got the same results. Hmm.
<ifModule mod_headers.c> Header set Access-Control-Allow-Origin: * </ifModule>
In the .htaccess file. I tried the form again and got the same results. Hmm.
New development. I set up the second form, which has *no* parts. I modified the template as before and get the same issue, it doesn't complete the submission on the webpage, it just says Waiting... but a response does get emailed correctly to the recipient. So it doesn't appear to be a part issue.
So everything from the form processing site seems to be working just fine. There only seems to be an issue when the POST URL is changed. Can you double-check my template to make sure I added it correctly? It looks right but a second pair of eyes wouldn't hurt and if it is correct, could you check and see how hard coding the URL would make the submit function not work correctly? Thanks!
Hi,
You can't change the action the form that way.
The action is used to validate the formdata before sending it.
In your case I think you should use an event.
So after the form is succesfully submitted, use the event to post the data to the external URL.
I think that would be the best approach.
Best,
Corretje
You can't change the action the form that way.
The action is used to validate the formdata before sending it.
In your case I think you should use an event.
So after the form is succesfully submitted, use the event to post the data to the external URL.
I think that would be the best approach.
Best,
Corretje
Ah! Ok... that's why it wasn't working... So. How do I create an event? I am not familiar with this process but I am a quick learner.
Check the controller.php in the Formidable package.
There around line 360 is the events-method.
There is also som example code there.
Let me know it it works! :)
Best,
Corretje
There around line 360 is the events-method.
There is also som example code there.
Let me know it it works! :)
Best,
Corretje
Ok, this looks a little daunting... Ideally, I would like to be able to say "If Form A then post results to this address, If Form B then post results to this address." I suppose I couldn't encourage you to lend me some assistance? Should be much easier than what you did for MailChimp. Please? ;-)
Hi,
I would like to help out on your code.
But I've so much work lying around here. Could we try to somewhere around June?
I've no time to help out now...
Best,
Corretje
I would like to help out on your code.
But I've so much work lying around here. Could we try to somewhere around June?
I've no time to help out now...
Best,
Corretje
Sure, I will PM you in June. I'll see if I can get my client to wait a bit...
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.
To re-open this issue, reply to this message.
To re-open this issue, reply to this message.
I think this is the same issue:
Access to XMLHttpRequest at 'https://secureform.luxsci.com/perl/post/16372-13608-thyi' from origin 'https://marshbrookrehab.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.