Skip to Content Skip to Menu

conditions not working in Edit profile

10 years 2 months ago #248048 by iytworldwide
conditions not working in Edit profile was created by iytworldwide
Hi Kyle,

conditions added on TAB works on registration but not on profile edit screen. Can you please guide me is that a bug or expected behaviour? I am running into concerns due to this as few tabs are conditions based on field values. This workflow works well on registration but once a user registers self and tried to edit profile, there the tab which should be displayed on condition only is being displayed without any condition check and thus user is forced to provide additional details for fields within the visibl TAB(as fields are mandatory if TAB is visible).

Please guide.

Warm Regards,
Amit Dangwal

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
10 years 2 months ago #248066 by krileon
Replied by krileon on topic conditions not working in Edit profile
You need to ensure the conditional is set to enable on profile edit. Please edit your tab then in the conditional configuration ensure under "For..." that you have "Profile Edit" set to "Enabled". If still not working then please provide the conditional you're trying to use that isn't working.


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.

  • lkessner
  • lkessner
  • OFFLINE
  • Posts: 15
  • Thanks: 1
  • Karma: 0
10 years 2 months ago #248210 by lkessner
Replied by lkessner on topic conditions not working in Edit profile
Hi,

i have the same problem. I want to show a tab on profile edit only when the user (with moderator rights) have the permissions. For permissions I have create a checkbox (cb_permsEdit) then I create a condition.



Direction: two-Way

But with this condition the tab was always shown on profile edit. When i edit the condition to profile view, then it works for view.


Lars
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
10 years 2 months ago #248229 by krileon
Replied by krileon on topic conditions not working in Edit profile
Your custom value doesn't look like a valid substitution. You've single quotes, when the REGEX that parses the substitution string is looking for double quotes. I'm also unsure why you need the IF substitution though as your field is already a 1 or a 0. Please try the below.

Value: [cb:userdata user="#me" field="cb_permsEdit" /]
Translate Value: Disabled
Operator: Equal To
Value: 1
Translate Value: Disabled


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.

  • lkessner
  • lkessner
  • OFFLINE
  • Posts: 15
  • Thanks: 1
  • Karma: 0
10 years 2 months ago #248232 by lkessner
Replied by lkessner on topic conditions not working in Edit profile
Hi Kyle,

it looks like a single quotes, but is a double quote. I use an REGEX because a want to test against other fields, but for a simple functiontest i use only one value. So that a equal to should works, but it doesn't it.

I changed the condition to your example, but it don't work for profile edit. When i enable For... Profile view the tab is hidden on the view screen, so that I think the condition works. On the profile edit screen it's always shown.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
10 years 2 months ago #248236 by krileon
Replied by krileon on topic conditions not working in Edit profile
The tab should display if the viewing users cb_permsEdit field has a value of 1 if using the above suggest conditional. Are you wanting it to be based off the viewing users cb_permsEdit or the user being edited? If user being edited just remove the user="#me".


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