Forums

Chronoforms6 - custom validation required

aurelay 18 Jul, 2017
Hello,

I would like to make a custom validation on a "D" field of the next type:
when the values selected of the 3 groups of radio buttons "A", "B" and "C" are equals to "xxxx", the "D" field is mandatory , otherwise it's optional.

I tried using a function in the validation rules of the field "D" but this is called only if the field is filled.

I also thought to use the events of fields "A", "B" and "C" by calling a function but I don't know how to make a mandatory field through javascript.

How can I do this ?

Thanks,
Max_admin 31 Jul, 2017
Hello aurelay,

This may work but after adding a new feature to allow the toggling of a field validation easily, please send me a message using the contact page and mention the topic link and I will send you a patch when its ready.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.