Custom fields / list

Post

Posted
Rating:
#6855 (In Topic #1795)
Avatar
Standard member
treedood is in the usergroup ‘Fan in action’
From the tutorial, I see this:

"You can also do like "a=This|b=That|c=Other" if you need the saved values to be different from the values displayed for selection."

I assumed this would work just like the standard country list…you select "United States of America" from the drop down and "US" gets saved in the database but "United States of America" is also displayed when you view the profile.

However, lets say I have a list with values default values "|ap=Apple|or=Orange|ba=Banana|le=Lemon".  The pulldown looks as expected (full words).  You select "Banana".  The "ba" gets saved to the database but the "ba" is also displayed (instead of "Banana") when you view the profile.

Am I misinterpreting how this should work or is there a setup issue that I'm missing?
Online now: No Back to the top

Post

Important!
Posted
Rating:
#6856
Avatar
Site director
admin is in the usergroup ‘Administrators’

Automated fix message

treedood said

From the tutorial, I see this:

"You can also do like "a=This|b=That|c=Other" if you need the saved values to be different from the values displayed for selection."

I assumed this would work just like the standard country list…you select "United States of America" from the drop down and "US" gets saved in the database but "United States of America" is also displayed when you view the profile.

However, lets say I have a list with values default values "|ap=Apple|or=Orange|ba=Banana|le=Lemon".  The pulldown looks as expected (full words).  You select "Banana".  The "ba" gets saved to the database but the "ba" is also displayed (instead of "Banana") when you view the profile.

Am I misinterpreting how this should work or is there a setup issue that I'm missing?
This issue has now been filed on the tracker as issue #4302, with a fix.
Important!

Post

Posted
Rating:
#6857
Avatar
Standard member
treedood is in the usergroup ‘Fan in action’

admin said

This issue has now been filed on the tracker as issue #4302, with a fix.
Thanks!  This fix does the job.  :thumbs:

In the hotfix description it says, " Support this via a new display_val=on field option."

For those who may be a little "slow on the uptake" like me, that means besides the changes to the php files, you also need to populate the Field options box as below.  I missed that the first time through.

listfield.PNG

As always, great support from the Composr team!!
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Users online:

deepu_ms, Vaiva, gabriel58, mytracker, babu, ManojSree, Manu

Forum statistics:
  • 1,262 topics, 5,794 posts, 6,967 members
  • Our newest member is josephgross123
Birthdays:
Back to Top