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
EileenSFDCnewbEileenSFDCnewb 

Using Javascript to overcome picklist limitations

Greetings all,
 
I'm trying to create a read-only system generated field ("newfield", string, length 10) which takes the first four characters of Field1, and the last six characters of Field2.
 
Problem:
Both Field1 and Field2 are picklists.  (So formulas don't work except by iterating through all the possible values within the formula itself (ispickval / case)).
 
Question:
Can I use Javascript to populate newfield ?  Has anyone done something similar?  I'm very new to s-controls and the like.
 
Thanks,
Eileen
 
fifedogfifedog
yes you can use javascript to do this... you may want to jump over to the developer boards.  however you may also want to start looking at appExchange under the current components to see if there is something there that can get you started.