Hi people. I've a event switcher with custom code that verified some field like in submit event:
but error is never show.
In a event switcher fail i've insert event loop that point to load
I tryed to insert a display message but never show.
<?php
if ( isset($form->data['field1']) && $form->data['field1'] ) {
if ( strlen($form->data['field1']) < 8 || strlen($form->data['field1']) > 10 ) {
$form->validation_errors['field1'] = "Error!";
return "fail";
} else {
return "success";
}
}
?>
but error is never show.
In a event switcher fail i've insert event loop that point to load
I tryed to insert a display message but never show.
Hi Zampieri,
instead of:
please use:
Regards,
Max
instead of:
$form->validation_errors
please use:
$form->errors
Regards,
Max
YEEESSSSSSS I finisched my first Chronoforms V5! Thank's.
A little question, but where I found complete documentation with information like above?
A little question, but where I found complete documentation with information like above?
Here on the forums or on the FAQs (tutorials), we don't have a full documentation for every feature.
Regards,
Max
Regards,
Max
This topic is locked and no more replies can be posted.
