Hello,
is it possible to enable or disable a fields required validation based on another checkbox that is chosen?
I would like to make something required whenever someone checks one value in another field.
thanks in advance,
Gery
is it possible to enable or disable a fields required validation based on another checkbox that is chosen?
I would like to make something required whenever someone checks one value in another field.
thanks in advance,
Gery
Hello guillome,
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How can I conditionally run an action?
ChronoForms/ChronoConnectivity fails after a Joomla! upgrade
Adding 1 more belongsTo model to our connection
How to use the "Task Control" in your connection.
P.S: I'm just an automated service😉
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How can I conditionally run an action?
ChronoForms/ChronoConnectivity fails after a Joomla! upgrade
Adding 1 more belongsTo model to our connection
How to use the "Task Control" in your connection.
P.S: I'm just an automated service😉
Hi Gery,
In CFv5 I believe that you can do this by adding / removing the validation class using JavaScript.
Bob
In CFv5 I believe that you can do this by adding / removing the validation class using JavaScript.
Bob
Hi Gery,
It will be something like this:
Bob
It will be something like this:
jQuery(document).ready(function (jQ) {
jQ('#checkbox_id').click(function () {
if ( jQ('#checkbox_id')..prop('checked') {
jQ('#field_id').addClass('validate[\'required\']');
} else {
jQ('#field_id').removeClass('validate[\'required\']');
}
});
});
!!! Not tested and may need debugging !!!
Bob
This topic is locked and no more replies can be posted.