You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not really an issue but I try to do somethink and I just can't achieve it.
I have an input field (text): company_name not required
I have an input field company_adres (text) and I want this one to be required only if company_name is not empty
Is it possible to get this working? I know it works with a checkbox: data-validation-if-checked
But I can't get it working with a input field type text.
Sorry for my poor english.
My regards,
Francois
The text was updated successfully, but these errors were encountered:
This is actually a good feature request. The attribute data-validation-if-checked should be renamed to data-validation-depends-on and should work with any type of input.
This feature has now moved into the module "logic". Using the old attribute data-validation-if-checked is considered deprecated and will trigger a console warning.
Validate input if a checkbox is checked
<p>
E-mail:
<inputdata-validation="email" data-validation-depends-on="agreement" /></p><p>
Lorem te ipsum
<inputtype="checkbox" name="agreement" value="1" /></p>
...
<script>
$.validate({
modules: 'logic'
});
Require state if user comes from either USA or canada
It's not really an issue but I try to do somethink and I just can't achieve it.
I have an input field (text): company_name not required
I have an input field company_adres (text) and I want this one to be required only if company_name is not empty
Is it possible to get this working? I know it works with a checkbox: data-validation-if-checked
But I can't get it working with a input field type text.
Sorry for my poor english.
My regards,
Francois
The text was updated successfully, but these errors were encountered: