Hi sebg,
I'm sorry I don't understand what the problem is. Does the form submit?
Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.
Note: if you are using the Easy Wizard you may need to switch to the Advanced Wizard to do this; if you want to continue to use the Easy Wizard please make a copy of your form first and add the Debugger action to the copy.
Bob
Hi GreyHead,
My english is not perfect, I will try to explain my problems.
I have 3 forms on my website. All these forms have filed default value like 'Nom *', and no label text.
On the forms, I have (I use the form wizard, not easy) in the wizard -> Events :
On Load : show html + Load JS (like in the previous message) ;
On Submit : (Upload file +) show thanks message + Email.
In the 'Load JS', there is a few function to empty the fields if there are by default.
- I thought required fields not changed by the user should display a validation but it does not work.
- In the email, the values are note empty, but by default.
Do you understand my problems ?
Here is the debugger result :
Data Array:
Array
(
[option] => com_chronoforms
[tmpl] => component
[chronoform] => contact-fr
[event] => submit
[Itemid] =>
[lang] => fr
[Nom] => Nom *
[email] => Email *
[adresse] => Adresse
[telephone] => Tel *
[message] => Message
[envoi] => Envoyer
[4bf6716404c8940b56b869a681fec135] => 1
[language] => fr-FR
)
Validation Errors:
Array
(
)
An email has been SENT successfully from mail to mail
om : Nom *
Email : Email *
Adresse : Adresse
Telephone : Tel *
Message : Message
Hi GreyHead,
Thanks for this response, it'is perfect !
Do you have some example to make 'dynamic forms' with javascript options ?
Seb
Hi Seb,
I have a half-written tutorial on Dynamic forms in CFv4 - I must sit down and finish it. What exactly do you need to do?
Bob
Hi grafik,
Neat, thank you. My main comment is that my code used the label rather than the name because the formatting requirements on the name (e.g. no spaces) mean that it may not always work well.
Bob
Hi grafik,
Yes, the code gets tricky because of the way that ChronoForms sets up labels :-( I have it working OK for inputs and textareas if I remember correctly.
Bob