Title: Help with conditional logic
Last modified: June 19, 2020

---

# Help with conditional logic

 *  Resolved [nanomania](https://wordpress.org/support/users/nanomania/)
 * (@nanomania)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/help-with-conditional-logic-2/)
 * Hi, can you help me with a problem that I have encountered? I added new conditional
   logic fields to the registration form, the problem is with multi selector fields,
   when you select more than one none of them appear, how can I solve this? Greetings.

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

 *  Plugin Author [Andrew Lima](https://wordpress.org/support/users/andrewza/)
 * (@andrewza)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/help-with-conditional-logic-2/#post-13047484)
 * Hi [@nanomania](https://wordpress.org/support/users/nanomania/)
 * Thank you for using Paid Memberships Pro.
 * The ‘depends’ attribute only supports one selection. You can use custom JavaScript
   to achieve multiple depends, here is a code example you may work from:
 * [https://gist.github.com/andrewlimaza/6c3ca0320cf318b5c58bf866e0fab3f5](https://gist.github.com/andrewlimaza/6c3ca0320cf318b5c58bf866e0fab3f5)
 * I hope this helps get you started.
 *  Thread Starter [nanomania](https://wordpress.org/support/users/nanomania/)
 * (@nanomania)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/help-with-conditional-logic-2/#post-13048710)
 * Hello Andrew,
    thanks for your answer, I will look at that code, thank you very
   much.
 *  Thread Starter [nanomania](https://wordpress.org/support/users/nanomania/)
 * (@nanomania)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/help-with-conditional-logic-2/#post-13048783)
 * Hello [@andrewza](https://wordpress.org/support/users/andrewza/),
 * I saw that code and it is not what I am trying to solve but I appreciate your
   help, what I am trying to do is something like this, I want to put a multi selector
   to put X professions inside, for example 3d modeler, programmer, designer, among
   others, of that So if the user has more than one of those professions, they can
   select them so that only the following information appears to be filled in for
   those professions, that way they do not make such a loaded form, the problem 
   I have is that selecting only one profession works all correct and the corresponding
   fields appear, but if you already select more than one, no field appears that
   should appear, the good thing would be that way not to show a very loaded form
   to the user, a greeting.

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

The topic ‘Help with conditional logic’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paid-memberships-pro_f1dacb.svg)
 * [Paid Memberships Pro - Content Restriction, User Registration, & Paid Subscriptions](https://wordpress.org/plugins/paid-memberships-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paid-memberships-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paid-memberships-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/paid-memberships-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paid-memberships-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paid-memberships-pro/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [nanomania](https://wordpress.org/support/users/nanomania/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/help-with-conditional-logic-2/#post-13048783)
 * Status: resolved