Title: Conditional fields
Last modified: October 10, 2020

---

# Conditional fields

 *  [stejus](https://wordpress.org/support/users/stejus/)
 * (@stejus)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/conditional-fields-46/)
 * Is it possible to have conditional fields in the registration form? For eg. I
   would like to have a checkbox (eg. agree for news updates), which if selected,
   should make a couple of other fields (eg. phone) mandatory. This is just one 
   of other scenarios that I would like to implement. Thanks.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/conditional-fields-46/#post-13527980)
 * You can potentially add your own jQuery (using the “checked” selector). Each 
   field has an ID that equivalent to the field’s meta key and that can be used 
   to target the field in eithe jQuery or CSS.

Viewing 1 replies (of 1 total)

The topic ‘Conditional fields’ is closed to new replies.

 * ![](https://ps.w.org/wp-members/assets/icon-256x256.png?rev=1226414)
 * [WP-Members Membership Plugin](https://wordpress.org/plugins/wp-members/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-members/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-members/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-members/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-members/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-members/reviews/)

## Tags

 * [conditional](https://wordpress.org/support/topic-tag/conditional/)
 * [Registration](https://wordpress.org/support/topic-tag/registration/)

 * 1 reply
 * 2 participants
 * Last reply from: [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/conditional-fields-46/#post-13527980)
 * Status: not resolved