I have set up some plans which have different required fields associated with them. I have applied the field protection plugin and set the relevant fields to hide at registration which all works fine.
The problem is that some of the fields are required at registration but only for certain plans. Although they successfully hide depending on the plan that is chosen, they are still requires and it wont let you register without filling them in (even though they are hidden).
The only way to register in this situation is go though each plan and fill in the required fields while they are visible. Obviously this is not a viable solution for the end user plus they then get irrelevant data associated with their profile.
What is needed is some additional logic so when a field is hidden (on choosing a plan), it is also removed from the submit validation (if required or validation exists) allowing a user to register.
It would also be great if the value of the field was cleared on hiding as then if a user filled it in and then changed their mind and chose a different plan, irrelevant data wouldn't get submitted.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.