Skip to:
Content
Pages
Categories
Search
Top
Bottom

Possible to require fields ONLY if another field is enabled?


  • Falafelhead
    Member

    @falafelhead

    Hey All and thanks for the help in advance!

    I’m creating a new registration form for users that has multiple Field Groups

    One of the groups has a ‘radio button’ asking if they want to supply their personal address for a physical subscription to our newsletter (YES/NO buttons)

    How I’m hoping this could work is IF a user selects ‘YES’ then the Address profile group will slide down and the user is required to fill in their address information. However if the user choose ‘NO’ to the newsletter subscription, then the Address profile group stays hidden (display:none) and the user is NOT required to fill out that information.

    Is this possible? To make fields required ONLY if the value of another field is defined?

    THANKS!

Viewing 2 replies - 1 through 2 (of 2 total)

  • spennis
    Member

    @spennis

    I have been asking for the same thing but no answer. This should be something that the Buddypress theme should integrate in future versions! It should be fairly simple and very useful! Not to mention a simple way to show the extended profiles…


    James Carroll
    Member

    @jcarroll

    I, too, would appreciate such a feature.

    @hnla, @mercime, How do I add a tag a forum post? I’d like to tage this one, but I don’t see how. Also, I’d like to “follow” or “subscribe” to this forum post, but I don’t see how. Will you please show me the way? (I am posting this “me too” reply in hopes that it will trigger a “follow” or “subscribe” function.)

    Thanks!

    P.S. I believe bug 1949 [1] relates to this issue; if I am mistaken, please let me know. Thank you!

    [1] https://buddypress.trac.wordpress.org/ticket/1949

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Possible to require fields ONLY if another field is enabled?’ is closed to new replies.
Skip to toolbar