Required fields are still required when hidden

14 years 8 months ago #106869 by softforge
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.

If you like our plugins, please consider writing a review on the Joomla Extension Directory or the Community Builder Directory ...

Please Log in to join the conversation.

14 years 8 months ago #106878 by krileon
This is already a known issue. You can not hide required fields. Fields are hidden with CSS, but still exist on the page at this time. Sorry, don't have a time frame for a fix.

Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.185 seconds

Facebook Twitter LinkedIn