Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Multiple fields condition question

  • KatoKalin
  • KatoKalin
  • OFFLINE
  • Posts: 265
  • Thanks: 11
  • Karma: -5
  • Add-ons
11 years 1 day ago #236182 by KatoKalin
Multiple fields condition question was created by KatoKalin
I have several text input fields on one tab.
User is required to have at least one of thes input fields filled out on registration.

Is there a way to set up CB Conditionals step-by-step registration to output an error and deny the next step until one of the fields has been filled out?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
11 years 15 hours ago #236218 by krileon
Replied by krileon on topic Multiple fields condition question
Yes, enable Validate within CB Conditional > Config > Registration. Only works if your fields are required through or have ajax validations on them.


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.

  • KatoKalin
  • KatoKalin
  • OFFLINE
  • Posts: 265
  • Thanks: 11
  • Karma: -5
  • Add-ons
11 years 6 hours ago #236262 by KatoKalin
Replied by KatoKalin on topic Multiple fields condition question

krileon wrote: Yes, enable Validate within CB Conditional > Config > Registration. Only works if your fields are required through or have ajax validations on them.

But this means that I have to make all of them as required which is not my intention. As I said, my requirement is to have at least one required which means that the requirement is met as long as user fills out one of these fields while the other remain empty. This would not work if I set them to as required.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
10 years 11 months ago #236276 by krileon
Replied by krileon on topic Multiple fields condition question
You want every field complete before moving on to the next tab but you only want 1 of them set as required? I don't understand, that's the same as being required. If you just want them to validate then any validation you apply to your fields you need to be sure "Also validate in browser:" is enabled if the field supports it (not all fields support ajax validation). It can't do PHP side validation on a step by step basis; that is always done after the form posts.


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.

  • KatoKalin
  • KatoKalin
  • OFFLINE
  • Posts: 265
  • Thanks: 11
  • Karma: -5
  • Add-ons
10 years 11 months ago #236282 by KatoKalin
Replied by KatoKalin on topic Multiple fields condition question

krileon wrote: You want every field complete before moving on to the next tab but you only want 1 of them set as required? I don't understand, that's the same as being required. If you just want them to validate then any validation you apply to your fields you need to be sure "Also validate in browser:" is enabled if the field supports it (not all fields support ajax validation). It can't do PHP side validation on a step by step basis; that is always done after the form posts.

No you still did not understand my requirement, or I was not able to be clear enough. The user shall be required to input data in one field. Which field does not matter. If there are 10 fields he can fill out 10 or 3 or 5 but at least 1 field must be filled out.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
10 years 11 months ago #236286 by krileon
Replied by krileon on topic Multiple fields condition question
CB Conditional step by step has no such feature. The only way to do that is to make at least 1 of the fields required, but then they always have to fill out that 1 field.

Please note that Step by Step is gone in next CB Conditional release as I've implemented a parameter in CB 1.10.0 to enable tabbed registration (looks like profile edit) so have removed step by step (a nightmare to implement and maintain) with next release.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum