I have a very big problem now. Some fields should be enable/disable if the user change a "gender" field. The gender field is only available on registration. He can not edit this field in his profile. And there is the problem. In this case, the cb conditional preferences don't work then in the profile edit page. All fields that should not be displayed, are still displayed. It doesn't matter if I enter the cb conditional preferences in the gender field (to disable all fields) or if I enter the preferences in the other fields (to disable this field if gender is like for example female).
So this is a big problem, because the user mustn't change the gender field. The membership for females is free. If males want write with the private message system, they have to pay.
I hope you understand what my problem is. Sorry for my bad english ^^
Joomla version: 3.3.6
Community Builder: 2.0.4
CB Conditionals 4.0.5
Edit your other fields and use Conditional Self to check the value of your Gender field. I'm guessing you're using Conditional Others and having your Gender field show/hide other fields. That case won't work if you've set the field to hide on profile edit. The reason for this is the fields array given to profile edit doesn't have that field in it so CB Conditionals has no idea it needs to load those conditions.
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.
Thanks for your answer but this does not work. I have written...
"It doesn't matter if I enter the cb conditional preferences in the gender field (to disable all fields) or if I enter the preferences in the other fields (to disable this field if gender is like for example female)."
I explained it poorly. With this I mean both solutions. Field Conditional Others and Field Conditional Self. Both don't work for me. I have just tried it again. I use the Field Conditional Self method in the field for example "cb_weight". In the profile edit page this field still was displayed. Only if I also show the gender field in edit profile page... all is fine and the weight field is hidden. Than I deactivate the gender field for edit page... the weight field was displayed.
Set the gender field to show in profile edit then set it to read only and see if your condition will function correctly. It's not really a bug as it can't load conditions for a field it doesn't know even exists. The feature to completely hide a field in profile edit was introduced in CB 2.x and there isn't much CB Conditional can do about it except always load every condition on every load, which isn't going to happen as it'd kill performance.
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.