chris.paschen
Chris Paschen
I have a form with multiple groups.
In one of the groups I have a Yes/No element.
I have a couple elements that are related (2 text fields) that are hidden when the Yes/No is "NO" and shown when it is "YES" (via javascript settings).
The 2 text fields are set to required (validation - not-empty) - so they become required when the initial element is set to YES.
That is all working; however, when you enter data in other fields on the form, then set the initial item to YES, but leave one of the related fields blank (thus raising a validation error), the validation works properly (notice displayed, save prohibited); however, all the data in any other field (within the same group as well as any other groups) that hadn't already been saved (in previous edits/saves) is wiped clean - including the "Yes" setting that was just set in the Yes/No field.
I've never seen this happen before in Fabrik.
Have I set something wrong that is causing all existing data to be lost when the validation happens?
NOTE: I do have a number of form actions (including a rather involved form php that reviews things but doesn't trigger until onAfterProcess)
Any setting or possibly other plugins that might be causing this?
In one of the groups I have a Yes/No element.
I have a couple elements that are related (2 text fields) that are hidden when the Yes/No is "NO" and shown when it is "YES" (via javascript settings).
The 2 text fields are set to required (validation - not-empty) - so they become required when the initial element is set to YES.
That is all working; however, when you enter data in other fields on the form, then set the initial item to YES, but leave one of the related fields blank (thus raising a validation error), the validation works properly (notice displayed, save prohibited); however, all the data in any other field (within the same group as well as any other groups) that hadn't already been saved (in previous edits/saves) is wiped clean - including the "Yes" setting that was just set in the Yes/No field.
I've never seen this happen before in Fabrik.
Have I set something wrong that is causing all existing data to be lost when the validation happens?
NOTE: I do have a number of form actions (including a rather involved form php that reviews things but doesn't trigger until onAfterProcess)
Any setting or possibly other plugins that might be causing this?