Hello
I think I found a bug on the current version of Fabrik (github).
On my test form (3 fields), I use the "bootstrap_tabs" template (Form -> Layout -> Template).
In the php form plugin, on "onBeforeStore" event, I manually set an error with this code (for test purpose):
$formModel->errors['survey___name'][0][]='manual error'; // "name" is the id of one of my fields.
return false;
When I hit the Save button in my form, the page reload but it's not anymore the "boostrap_tabs" template which is used but the default "bootstrap" one...
PS1: the form is called from a standard joomla menu (Menu Item type: Form)
PS2 : The problem occurs only when generating an error in the PHP Form plugin. If I use a validation plugin on my field (i.e. the notempty plugin) it works correctly.
PS3: It works well if I force, in the menu options / Fabrik Form Options, the template to "boostrap_tabs".
Regards
I think I found a bug on the current version of Fabrik (github).
On my test form (3 fields), I use the "bootstrap_tabs" template (Form -> Layout -> Template).
In the php form plugin, on "onBeforeStore" event, I manually set an error with this code (for test purpose):
$formModel->errors['survey___name'][0][]='manual error'; // "name" is the id of one of my fields.
return false;
When I hit the Save button in my form, the page reload but it's not anymore the "boostrap_tabs" template which is used but the default "bootstrap" one...
PS1: the form is called from a standard joomla menu (Menu Item type: Form)
PS2 : The problem occurs only when generating an error in the PHP Form plugin. If I use a validation plugin on my field (i.e. the notempty plugin) it works correctly.
PS3: It works well if I force, in the menu options / Fabrik Form Options, the template to "boostrap_tabs".
Regards