how to return label of selected drop down?

4 years 8 months ago #313351 by saman2
Replied by saman2 on topic how to return label of selected drop down?

krileon wrote: The only exception is if it's on a tab in a not shown on profile position. Review your configuration carefully as it has been configured in some way to not display.

yes you are right...
i set that field in contact info and set accesslevel for that field to registred user but i need that setting. i want prevent to public or guest to see my user details. how to get that value in this situation? what is you suggestion?

Please Log in to join the conversation.

4 years 8 months ago #313354 by krileon
Replied by krileon on topic how to return label of selected drop down?

how to get that value in this situation? what is you suggestion?

Move it to a tab with public access permissions or change the tab its currently on to be public access.


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 to join the conversation.

4 years 8 months ago #313363 by saman2
Replied by saman2 on topic how to return label of selected drop down?
i want to it stay in not public. i want anyone can't see that.how to solve this problem? i want no one can see one field but i want get that in autoaction such as http request ?

Please Log in to join the conversation.

4 years 8 months ago #313375 by krileon
Replied by krileon on topic how to return label of selected drop down?
You can't as again [cb:userfield field="FIELD_NAME" /] substitutions respect access permissions. [FIELD_NAME] are always raw output so it will return the stored value. Your auto action should be using [FIELD_NAME] usage. If you need the label that would be the formatted value and you won't be able to get it because you won't adjust the access permissions to allow for that. Your only alternative is probably manually converting value to label in that case. Example as follows.

[cb:if FIELD_NAME="VALUE_1"]LABEL_1[cb:elseif FIELD_NAME="VALUE_2"]LABEL_2[/cb:elseif][cb:elseif FIELD_NAME="VALUE_3"]LABEL_3[/cb:elseif][/cb:if]


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: saman2

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.204 seconds

Facebook Twitter LinkedIn