Skip to Content Skip to Menu

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

Conditional field controlled by Checkbox

  • elian
  • elian
  • OFFLINE
  • Posts: 35
  • Thanks: 5
  • Karma: 0
8 years 5 months ago #281445 by elian
Hi Folks,

i´ve done a lot of testing, but cant get to run the following issue:
Ive got a checkbox field with 7 Options (e.g. Facebook, Twitter, Google+, etc)

I now like to show up a URL field (here the URL Field for "Facebook") when checking "Facebook" in the checkboxfield.

So i made in the conditional tab:
- Self controlled
- IF = my Checkbox Field
- Contains not
- "Facebook"
- Then Hide

I guess there must be a substitution for the choosen checkbox vales? E.g. Facebook = "0"?

Any Idea?
Thanks,
Dennis

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 5 months ago #281462 by krileon
Replied by krileon on topic Conditional field controlled by Checkbox
You need to condition against the value of the checkbox field and not the label. Contains operators or REGEXP operators will work with multi type fields (mutli-select and multi-checkbox). Example usage as follows.

Option
Value: fb
Label: Facebook

Condition
Display: Field conditional self
Field: Checkbox Field
Operator: Does Contain
Value: fb
Translate Value: No
Mode: Show
Registration: Yes
Profile Edit: Yes
Profile View: Yes
Userlists Search: No
Userlists View: Yes

Alternatively the below REGEXP usage will also work.

Operator: Is REGEX
Value: /fb/
Translate Value: No


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.

  • elian
  • elian
  • OFFLINE
  • Posts: 35
  • Thanks: 5
  • Karma: 0
8 years 5 months ago #281492 by elian
Replied by elian on topic Conditional field controlled by Checkbox
Hi Kyle,

thanks a lot for your answer. Checked both options but still can not get it to work.
As you can see in the attached screenshots.

The only thing i´ve done aditionally is set a html Tag in the Parameter Tab to display an image before the value output. But i think that doesn´t could brek the function.

Dennis
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 5 months ago #281511 by krileon
Replied by krileon on topic Conditional field controlled by Checkbox
Try the REGEX operator. Beyond that I don't know what to tell you as it's working perfectly fine in all my tests. If you're applying multiple conditions to the same field then it won't work as they will fight one another for control.


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