Forums

Event Switcher

m.fontana 27 Jan, 2016
Hi,
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
calculus00 27 Jan, 2016
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šŸ˜‰
GreyHead 27 Jan, 2016
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
m.fontana 28 Jan, 2016
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
This topic is locked and no more replies can be posted.