Hi!
I need it to make invisible an input when the dependee field haves more than 10 characters, so I made some regex triggering with #states and some javascript tweeking inspired by this slide.
So why not implement this in this wonderful module? :)
I already made a patch, but, i don't know if everything is in the scope of the module.
The patch add a checkbox "Is a Regex Expression" when the condition is "Value" and as values "Insert value from widget..."
Cheers!
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | conditional_fields_regex_as_value-1340616-1.patch | 2.84 KB | sebas5384 |
Comments
Comment #1
sebas5384 commentedComment #2
arisaves commentedHey -- would I be able to use this to check against a date range?
Comment #3
peterpoe commentedJust committed in dev an update that adds this functionality. I did not use patch in #1 since it worked only with textfields, thanks anyway!