function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
CJDEVCONPROCJDEVCONPRO 

Select Field that populates a text field when selected?

I have a Select field and a Text field that I created in SForce. Now, the Select field has items populated in it. These items relate to an ItemID for each item. so it would look like this in a text file (For conversation here)
 
Cars -  1
Trucks - 2
Boats - 9
Trailers - 15
Motorcycles - 39
 
Now what the Select field has is just the Items and not the ID's. What I would like to have happen is the following:
 
When a user is editing an Account, and they select one of the items in the Select field, populate the text field just below it with the ItemID.
 
Is this possible and if so, how do I do it?
 
thanks!
SteveBowerSteveBower

Can't you just use a long butt-ugly Formula field for the text field?  Nested if's on the "{!Select_field} to emulate a Case statement to set the value, etc.  It wouldn't be pretty, but the alternative is to create a custom link (or hypertext formula) to an s-control which would do the lookup for you.  Fairly easy, but I don't see a reason not to use a formula.  (Of course, it's late and I'm tired.. :-) )

Steve Bower