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!

Comments

sebas5384’s picture

arisaves’s picture

Hey -- would I be able to use this to check against a date range?

peterpoe’s picture

Status: Needs review » Fixed

Just committed in dev an update that adds this functionality. I did not use patch in #1 since it worked only with textfields, thanks anyway!

Automatically closed -- issue fixed for 2 weeks with no activity.