Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Intro Black Friday Offer for a lifetime*

how to return label of selected drop down?

  • saman2
  • saman2
  • ONLINE
  • Posts: 407
  • Thanks: 7
  • Karma: -1
5 years 4 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 or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48551
  • Thanks: 8291
  • Karma: 1445
5 years 4 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 or Create an account to join the conversation.

  • saman2
  • saman2
  • ONLINE
  • Posts: 407
  • Thanks: 7
  • Karma: -1
5 years 4 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 or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48551
  • Thanks: 8291
  • Karma: 1445
5 years 4 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 or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum