Skip to Content Skip to Menu

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

[SOLVED] user cannot edit field in front end when CB conditional "field conditional self" is on

8 years 9 months ago - 8 years 9 months ago #276681 by akasharkbow
Hi there

I have a text area field "cb_bio" that I want to appear on profiles only for certain users. To do this, I have used a CB conditional "field conditional self" to check the value of another field: cb_bio is shown only if the other field holds the value "author".

This works for showing the field on relevant profiles. However, for some reason, when that conditional statement is included, the user is unable to edit the field from the front end of the site. Back-end editing by a super-admin still works. Front end editing by the user functions normally if the conditional statement is removed.

Am I missing something here, or is this a bug?
Last edit: 8 years 9 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 9 months ago #276684 by krileon
What is your condition exactly. It's possibly it's passing in PHP, but failing in JS. For example if the field it is conditioning off of is not available in profile edit then the JS condition will always fail and you need to use a static condition for that. To setup a static condition you need to change its usage to Custom > Value then substitution in the field for Value as [FIELD_NAME].


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.

8 years 9 months ago #276686 by akasharkbow
Thanks krileon. OK, the field that it is conditioning off is not available in front-end profile edit.

Could you possibly elaborate on setting up a static condition? I'm afraid I don't understand this sentence:
"To setup a static condition you need to change its usage to Custom > Value then substitution in the field for Value as [FIELD_NAME]."

Thanks.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 9 months ago #276719 by krileon
Since the field is not available in profile edit the jQuery based conditioning can not function as it can't find the field to check its value. This is a known issue that I'll be addressing in a later release, but for now the following condition usage can workaround that problem.

Display: Field conditional self
Field: Custom > Value
Value: [FIELD_NAME]
Translate Value: No
Operator: Equal To
Value: VALUE
Translate Value: No
Mode: Show

Where FIELD_NAME is you'd supply the field name of the field cb_bio is conditioning off of to substitute in its value for a static condition. Example as follows.

Display: Field conditional self
Field: Custom > Value
Value: [cb_profiletype]
Translate Value: No
Operator: Equal To
Value: author
Translate Value: No
Mode: Show


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.
The following user(s) said Thank You: akasharkbow

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

8 years 9 months ago #276803 by akasharkbow
Worked beautifully. Thanks so much.
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum