Hi,
on my form setup I create a validation section with this code:
and on success and fail section I put a display message; but when I test form and submit the information the message doesn't appeared, why? What can I do for solve this?
The real function of form is: if the event is correct go to page2, if isn't correct go to page3
http://www.ekofocus.it/index.php?option=com_chronoforms5&chronoform=controllo-paese-prova
Thanks
Matteo Fontana
on my form setup I create a validation section with this code:
<?php
if ( $form->data['citta'] == 'Altro' ) {
return 'fail';
} else {
return 'success';
}
?>
and on success and fail section I put a display message; but when I test form and submit the information the message doesn't appeared, why? What can I do for solve this?
The real function of form is: if the event is correct go to page2, if isn't correct go to page3
http://www.ekofocus.it/index.php?option=com_chronoforms5&chronoform=controllo-paese-prova
Thanks
Matteo Fontana
Hello m.fontana,
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
Event switcher
P.S: I'm just an automated service😉
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
Event switcher
P.S: I'm just an automated service😉
Hi Matteo,
The Event Switcher needs to be in the On Submit event of the form (or you need to change the HTML(Render form) action to have the form submit to the On Validate event).
Bob
The Event Switcher needs to be in the On Submit event of the form (or you need to change the HTML(Render form) action to have the form submit to the On Validate event).
Bob
Great now function; another question, I won't to connect my dropdown with my database, becouse I have a list of state and city, how can I do this?
Thanks
Matteo
Thanks
Matteo
This topic is locked and no more replies can be posted.