Zebra_Form::show_all_error_messages PHP Method

show_all_error_messages() public method

Client-side validation is done on the "onsubmit" event of the form. See {@link clientside_validation()} for more information on client-side validation. create a new form $form = new Zebra_Form('my_form'); display all error messages of error blocks $form->show_all_error_messages(true);
public show_all_error_messages ( boolean $value = false ) : void
$value boolean Setting this argument to TRUE will display all error messages of an error block, while setting it to FALSE will display one error message at a time. Default is FALSE. @return void
return void
    function show_all_error_messages($value = false)
    {
        // set the property
        $this->form_properties['show_all_error_messages'] = $value;
    }