Skip to Content Skip to Menu

Issue with hidden fields at registration and then becoming required after error

  • wintercorn
  • wintercorn
  • ONLINE
  • Posts: 150
  • Thanks: 17
  • Karma: 2
1 day 10 hours ago #341921 by wintercorn
I've got 4 registration forms with different fields across different tabs for different sub levels. These fields are hidden in the plan settings and are not normally visible and the registration mostly proceeds as normal. The unrequired tabs are hidden by css.

However, when there is an error (user hasn't completed a field correctly or missed a required field) it then reloads and shows the hidden tabs and hidden fields which obviously makes proceeding impossible.

This appears at the /saveregisters part of the reg process.

The question is : how can I prevent these hidden fields and tabs from ever showing when not required?
Attachments:

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 49536
  • Thanks: 8482
  • Karma: 1465
1 day 4 hours ago #341922 by krileon
Sounds like the plan selection javascript isn't triggering on re-display when there's a server side validation error blocking the registration. Does re-selecting the plan clear up the issue? That'll at least let us know that the javascript at least still works.


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 or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 49536
  • Thanks: 8482
  • Karma: 1465
1 day 4 hours ago #341923 by krileon
Retested the following scenario.

Plan A hides Field A
Field B validation requires a value higher than 100

First selected Plan A and confirmed Field B was hidden. Input a value of 5 for Field B then attempted to register. Registration failed with validation error where Plan A was still selected and Field A was still hidden. I repeated this test twice using exclusive and non-exclusive plan.

Seams like it's possible something maybe interfering with this behavior on your site


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 or Create an account to join the conversation.

  • wintercorn
  • wintercorn
  • ONLINE
  • Posts: 150
  • Thanks: 17
  • Karma: 2
1 day 4 hours ago #341924 by wintercorn
Not sure what you mean but refreshing the page and reloading the form content still shows the issue. I've tried it with and without SEF urls - no difference. There's nothing in the console error panel either.

How would I determine that the plan selection javascript is working or not?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 49536
  • Thanks: 8482
  • Karma: 1465
1 day 4 hours ago #341927 by krileon
Unselect and re-select the plan or is there only 1 plan available preventing you from selecting it to begin with?


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 or Create an account to join the conversation.

  • wintercorn
  • wintercorn
  • ONLINE
  • Posts: 150
  • Thanks: 17
  • Karma: 2
1 day 4 hours ago #341928 by wintercorn
There isn't a way to select/unselect a plan. The plans are added to the (hidden) CBSUBS plans menu and then those SEF urls are linked from the membership intro page.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum