Script - Looking for a script to take an integer value (1-5) from a picklist radio button selection. The idea is to have the user creating the WS record select from a list of 5 options and then have the WS record retain the selection integer that corresponds with the selection. Currently in PLM 360, the picklist function does not return a predictable integer value, known issue, no planned fix.
Correct. If change the picklist definition and inject selection options, its index changes with it.
Thanks, however, I am not clear what you mean by injection options. Currently the picklist options I have are setup as follows, example:
1 - No Goals or Vision
2 - Assumed Goals
3 - Agreed Goals and Assumed Vision
4 - Confirmed Goals and Vision
5 - Measured Success Towards Goals
I need the radio button selection to return the corresponding integer value. I was told by support the only way to insure the correct integer value was scripting. Any advice?
I have a great tip for this.
If you want to make sure your numbers match the assigned "background" integer you CAN make this happen. Normally when you create a new pick list you add all the values to the new list and hit "Save" - here it basically adds them to the back end database in a random order.
HOWEVER -
if you add these values one at a time - SAVING the pick list after each value the integers will get assigned in the order you want.
Once you do this you can validate the value but it will assign the integers (pick list index) in the right order: