Validation message in PHP code

Set custom validation errors in ChronoForms v6.

Overview

In v5, custom PHP validation used a specific array structure that changed in v6.
Use the `$this->errors[]` array to add custom validation error messages within your PHP code.

Answered
ChronoForms v6
fl flashfs 25 Aug, 2017
On v5, when working with custom PHP validation on Submit action, we could populate the array $form->validation_errors['fieldname'] and set an event loader. Is there this kind of array on v6?
Max_admin Max_admin 25 Aug, 2017
Answer
Hi flashfs,

Please try this:
$this->errors[] = "new error";


Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.