Skip to Content Skip to Menu

cb conditional hiding fields doesn't work

10 years 9 months ago #239438 by thewebsurfer
cb conditional hiding fields doesn't work was created by thewebsurfer
hi,
i add those lines in language.php
Code:
DEFINE('official' , 'Official user'); DEFINE('visitor' , 'Visitor user');

in registration form i have a radiobutton field with "official" and "visitor" options.
i'm using define variables in language.php because in this way i have a radiobutton value="official" and "visitor" but different labels (as i want).

but CB conditional is configured hiding some field in case of visitor checked, and using those variable doesn't hiding anything.

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

10 years 9 months ago - 10 years 9 months ago #239459 by thewebsurfer
Replied by thewebsurfer on topic cb conditional hiding fields doesn't work
i didn't solve this, in the other hand i get another problem who drive me crazy :pinch:

/index.php?option=com_comprofiler&task=registers&Itemid=257
i want to hide profession field when i set "visitor" usertype.
cb conditional rules works for all but this field.
krileon i sent you the admin pass
Last edit: 10 years 9 months ago by thewebsurfer.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 9 months ago #239493 by krileon
Replied by krileon on topic cb conditional hiding fields doesn't work

but CB conditional is configured hiding some field in case of visitor checked, and using those variable doesn't hiding anything.

When using CB Conditional to match against values always match against the untranslated value and set "Translate Value:" to "Disable".

i want to hide profession field when i set "visitor" usertype.

Ensure you're not conditioning the Profession field to show/hide multiple times. The last conditional applied to a field will also be the conditional that takes affect. For example of you condition it on Tab 1 then condition it on Tab 2 of your conditionals then the condition on Tab 2 will always take affect over the one on Tab 1.

krileon i sent you the admin pass

Please do not send me credentials that were not requested. We do not do install reviews on request. Only as a last resort when we suspect a bug.


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.

10 years 9 months ago #239532 by thewebsurfer
Replied by thewebsurfer on topic cb conditional hiding fields doesn't work

krileon wrote: When using CB Conditional to match against values always match against the untranslated value and set "Translate Value:" to "Disable".


so i can't use CB conditional and those variable in language.php?why this programming choice?
the CB conditional js script should check the value of the input, not the label :blink:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 9 months ago #239566 by krileon
Replied by krileon on topic cb conditional hiding fields doesn't work
You match against the actual value that is stored in your database. CB doesn't store the translated value. This allows your conditional to work no matter what language you use. It does check the value of the input. If your fields value is _UE_MYVALUE then is translated to "My Value" then you condition against _UE_MYVALUE and turn off translate value.


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