In short: I need to disable the registration button (-> not allow user to register) if user selects a value from field.
Example: on registration form (front-end):
(a) user selects member type= A => all relevant fields are visible and user proceeds with registration;
(b) user selects member type= B => none of the fields are visible except note (delimiter) with information to call/ check availability, etc. PLUS, the registration button is not visible, thus not allowing the user to proceed with registration.
I have conditionally displayed the fields depending on account selection, but I'm not sure how to completely disable the registration button for that case.
CB Conditional can't disable registration. It can only show/hide your fields/tabs. Even if you hid the button it would be cosmetic and not actually disable the registration. Couldn't you simply set the member type field to Required so they have to pick a type?
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.
Hi Kyle - Yes, the field is required - how about I show you the actual
example
-> select "Consumer/Warranty Registration" you will see all fields and that's what we want; When you select "Shop Owners" you will see the fields are gone (hidden by conditional) but the "Register" button is still there. The idea would be to 'hide' the registration button, so if user selects the "Shop Owner" option, they actually cannot register (-long story: the shop membership is by invitation only, so the accounts for shop owners are created in the back-end. The rest: email confirmation, ACL - follows the member type) - hope this gives you a better insight - thanks for your assistance,
Best,
AZ
I suggest having a middle man page. Have a Joomla menu link to a Joomla article that details the two membership types. For Consumer/Warranty provide a link to CB registration and assume everyone is a Consumer/Warranty. For Shop Owner inform them to contact you and provide a link to a way to contact you. Then simply have a CB checkbox field to determine if they're a shop owner or not that you check in backend for the user. Aside from that you can use CB Auto Actions to add jQuery to your registration form display that on change of that select to that value hides the registration button.
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.