Skip to Content Skip to Menu

[SOLVED] Value in CB2 list

  • glenanPL
  • glenanPL
  • OFFLINE
  • Posts: 50
  • Thanks: 2
  • Karma: -1
9 years 10 months ago - 9 years 10 months ago #255359 by glenanPL
[SOLVED] Value in CB2 list was created by glenanPL
Hello,
Is it possible in a CB2.0.4 list to have the display value instead of the label?
Regard
Last edit: 9 years 10 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48482
  • Thanks: 8283
  • Karma: 1443
9 years 10 months ago #255376 by krileon
Replied by krileon on topic Value in CB2 list
Edit your userlist within CB > List Management and under Columns you can specify individually how a field displays. With or without Title display it will always display the value as needed. Beyond that I'm unsure what you're asking, sorry.


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.

  • glenanPL
  • glenanPL
  • OFFLINE
  • Posts: 50
  • Thanks: 2
  • Karma: -1
9 years 10 months ago #255389 by glenanPL
Replied by glenanPL on topic Value in CB2 list
Thanks for the answer,
But this is not a title demand
In a field: drop down (multi-select) I have:
Value = short
Label = long message with a lot of text
In the list, it’s always the label than appears.
Was it possible to show value instead of label?
Regard

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48482
  • Thanks: 8283
  • Karma: 1443
9 years 10 months ago #255392 by krileon
Replied by krileon on topic Value in CB2 list
Select value labels are always output. The value is used for storage purposes only. The value is used as label if there is no label. The only way to have what you're wanting is to override the userlist value display or using a Custom HTML field. You can override the userlist value display be editing your Field then under Parameters adjust "Userlist Value Layout" as needed. The problem is it's a multiselect and the only way to get the raw value instead of label is to use a raw substitution (e.g. [FIELD_NAME]), but then the multiselect values will be |*| delimitered. I don't really have a solution for you as your usage doesn't particularly make sense; you may want to consider not having a Label if you want the Value displayed.


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

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

  • glenanPL
  • glenanPL
  • OFFLINE
  • Posts: 50
  • Thanks: 2
  • Karma: -1
9 years 10 months ago #255420 by glenanPL
Replied by glenanPL on topic Value in CB2 list
Thanks,
With this post and an old one of your’s
licenses.joomlapolis.com/forum/154-advanced-members-support/212720-delimeter-problems?start=6
+ the video of Nant

I can solve my problem
In Field manager – “the field” – parameters – Layout - Userlist Value Layout
I substitute some value using
[cb:if cb_formation =~ "/CRCI/"]*CRCI*[/cb:if]
[cb:if cb_formation =~ "/DEFIT/"]*DEFIT*[/cb:if]
[cb:if cb_formation =~ "/GMP/"]*GMP*[/cb:if]…
And it’s works
Thanks

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

Moderators: beatnantkrileon
Powered by Kunena Forum