Hello,
I wish that a click on the "submit" button starts only a personnal javascript function and sending emails.
In the final I don't wish the form is reloaded.
how may I parametrize chronoform to do it?
Thanks in advance for your help.
Hi pelucre,
You can add a JavaScript to run on the onSubmit event (though it may be better to use the onClick event for the submit button to avoid problems with the form validation).
You can use the ReDirect URL to show some other page after the form is submitted and emails are sent.
Bob
Hi pelucre,
There are no errors - just PHP Warning messages. I'm not sure why you are seeing them though.
Does the code behave correctly apart from the messages? If so, then set Error Reporting to 'System Default' or 'None' in your site Global Configuration.
Bob
I don't know if the code behaves correctly apart the messages because nothing else appears on the page after submitting.
For information, Error Reporting is set to "None" in my site Global Configuration and apparently the page isn't redirected to an other URL (just &event=submit is added at the end of the form URL)
Hi pelucre,
A blank page and &event=submit in the URL is the normal behaviour if your form does not have a Thank YOu message set and is not ReDirecting.
It sounds as though the ReDirect User action isn't being called. Where is it in the OnSubmit event?
Bob
PS I just tried to submit the form from your redirect link but it looks as though you have required inputs that are set to readonly so it wasn't possible.
Thank you for your explanation of the blank page, I added the redirection of users and now the warnings are gone.🙂
I fixed my javascript function that sets different fields readonly.
But now how do I set ChronoForms to send the field values ​​entered by the user when redirecting the URL?
For example, the user's name, address and pack choices (radio button).
I found how send the field values but i have a problem with email, checkbox and radiobox.
I think I need to use the "handle arrays" but i dont't know how and i don't find a tutorial.
Can you explain me ?
Thanks for your help
Hi pelucre,
If you search here on Handle Arrays you will find dozens of posts with the answer!
In CFv3 set 'Let ChronoForms handle arrays' to 'Yes'.
In CFv4 drag a Handle Arrays action to the On Submit event and move it before the Email or DS Save actions.
Bob