Greetings:
In my php code for a form plugin I have forced an error - expecting that the configured error message would be displayed. I always get the configured success message.
The way I force an error is
$formModel->updateFormData('simaddwatchlistlog___note', 'Symbol longer than 8 characters.', true);
$formModel->getForm()->error = "Sorry Dave, that's not going to work.";
$errorfl="1";
return false;
The formdata field is not updated and there is no error.
Should I be triggering an error in another way?
Is there anywhere that php plugin errors would be logged?
Thank you.
In my php code for a form plugin I have forced an error - expecting that the configured error message would be displayed. I always get the configured success message.
The way I force an error is
$formModel->updateFormData('simaddwatchlistlog___note', 'Symbol longer than 8 characters.', true);
$formModel->getForm()->error = "Sorry Dave, that's not going to work.";
$errorfl="1";
return false;
The formdata field is not updated and there is no error.
Should I be triggering an error in another way?
Is there anywhere that php plugin errors would be logged?
Thank you.