Skip to Content Skip to Menu

🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

render dropdown single select as image

  • Giankomat
  • Giankomat
  • OFFLINE
  • Posts: 56
  • Thanks: 0
  • Karma: -1
  • Add-ons
9 years 9 months ago #261118 by Giankomat
render dropdown single select as image was created by Giankomat
hi, I have a dropdown "rank" with values:
Code:
value | label member1 | basic member member2 | avg member member3 | top member

Profile Value Layout:
Code:
<img src="[value].jpg"/>

but in this way [value] is the label, not actually the dropdown value

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

  • Giankomat
  • Giankomat
  • OFFLINE
  • Posts: 56
  • Thanks: 0
  • Karma: -1
  • Add-ons
9 years 9 months ago #261119 by Giankomat
Replied by Giankomat on topic render dropdown single select as image
i solved using this layout
<img class="" alt="[value]" src="/images/rank/[fieldname].png"/>

I just can't remember how to set a default value for this field for all the users (even the users who are already registered)

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48622
  • Thanks: 8303
  • Karma: 1446
9 years 9 months ago #261167 by krileon
Replied by krileon on topic render dropdown single select as image
You can use IF substitution to set a default using the layout parameters. Example as follows.

[cb:if cb_myfield=""]Default[/cb:if]
[cb:if cb_myfield!=""][cb_myfield][/cb:if]

The default at registration parameter only functions at registration so it won't affect existing users.


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