Forums

Conditional required fields

kraadde 12 Feb, 2025

Is there a possibility to set a field conditionally as required?

Max_admin 13 Feb, 2025

what are you trying to do ?

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
kraadde 13 Feb, 2025

Max, I have a form with many fields that are set as required. some of them are hidden (or shown), depending on  a dropdown selection.

Whenever they are hidden, of course the user will not fill them. As a result, submitting will not be possible and an error message will appear.

Have you a solution advise for that?

Regards

Max_admin 13 Feb, 2025
Answer

Just disable the fields validation with a listener:

in this case the field validation after submit will NOT be processed

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
You need to login to be able to post a reply.