WordPress.org

Support

Support » Plugins and Hacks » Participants Database » regex validation for a field

regex validation for a field

Viewing 7 replies - 1 through 7 (of 7 total)
  • What you want to do may be possible, but not with a regex, which only looks at the input provided by the user, not the state of another field.

    Perhaps if you explained what you need to do and why, a practical solution could be suggested.

    Thank u Xnau you always are so quick and kind!

    I have a subscription for a running team. One question reguards one special program of the subsciption:

    Q11: Do u wanna agree to Program XY?

    Question 12 regards a subprogram of the XY program so in order to let user choose this option, the form should verify that Q11 has been checked. Otherwise Q12 is not applicable..

    (I don’t know how can I modify the topic title, since Regex is wrong!)

    franc3s,

    OK, well, the plugin doesn’t have a built-in way to do this kind of thing. Usually, a function like this in a form would be handled with Javascript because you don’t really want the person to actually submit the form in order to validate the checkbox. It also gives you an opportunity to hide an irrelevant option unless they click the checkbox.

    Mmmm, but I really don’t know what I should do and where?
    Could you help me?

    franc3s,

    …well, you’d kinda have to have some skills to pull this off. It’s not something I can just give you the code for.

    If you go searching around for stiff like “jquery wordpress forms validation”, you’ll find what you’re looking for, but it won’t be something you can just plug in, because you have a pretty specific need. jQuery makes it very easy, though.

    I’ll have to figure out a different way to obtain my needs! 🙁

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘regex validation for a field’ is closed to new replies.
Skip to toolbar