I have a form with a php that is evaluated by an event switcher in the submit action but the forms is sending every time, doesn't matter if the event is true or false.
How can I get back to it and display a message in the system message bar to correct the fields before sending it ?
Thanks,
Pablo
How can I get back to it and display a message in the system message bar to correct the fields before sending it ?
Thanks,
Pablo
Hi pdforest,
Do you have an Event Loop action in the fail event of the Event Switcher?
Bob
Do you have an Event Loop action in the fail event of the Event Switcher?
Bob
He meant an event switcher, event loop is what it's called in v5.
Post your debug, and make sure your PHP is returning a boolean and not the string "false"
Post your debug, and make sure your PHP is returning a boolean and not the string "false"
Hi thanks!
I changed true/false by 1/0 but worked the same way. I want to come back to the form in case of error, not to continue sending the form.


Thanks,
Pablo
I changed true/false by 1/0 but worked the same way. I want to come back to the form in case of error, not to continue sending the form.
Thanks,
Pablo
There's a problem with the event switcher at the moment. Instead of 0, check for /0/
And you should use an "event load" action, pointing back to "load", (with a message action before it) instead of a redirect.
And you should use an "event load" action, pointing back to "load", (with a message action before it) instead of a redirect.
Thanks healyhatman the "event load" did it. I think I don't know some basic concepts so where can I read about events?
Thanks,
Pablo
Thanks,
Pablo
This topic is locked and no more replies can be posted.