Contitional fields -> validation

jj135 30 Jan, 2018
We have a form field 'A' that is visible and is hidden conditionally bases on a value selection of different field 'B'. The form field 'A' is required. When the form is loaded field 'A' is shown. When field 'B' is changed field 'A' is then hidden (or shown) bases on the value of 'B'. On the events tab of 'B' we created this conditional showing of 'A'. In these events settings we also turn the validation on and off.
But we also use the 'server-side' validation action for the whole for. When this is set to 'All fields with validation rules' it gives the user a server-side validation error on field 'A' when it is (conditionally) hidden.
Would it not be better if the server-side validation action (validate fields) also somehow recognizes the validation being conditionally turned of? Now we need to exclude this field 'A' from the server-side validation.
Kind regards, Jip
Max_admin 31 Jan, 2018
1 Likes
Hi Jip,
It would be better of course but currently this is not implemented, I'm planning to have it added in a future update, but for now you can set the "Validate fields" to validate listed fields and select the fields to be validated only.
Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jj135 31 Jan, 2018
OK thanks!
This topic is locked and no more replies can be posted.