AnsweredAssumed Answered

Dropdown Choice Updates Another Field on Same Layout

Question asked by osninc on Jun 27, 2018
Latest reply on Aug 16, 2018 by user19752

Hi,

 

I have a text field named "KEY" with a global value that I want to update based on another field named  "SELECTION".

 

"SELECTION" is a drop down list and has 4 choices from a Value List: A, B, C, D and when I make a selection I want the other field named "KEY" on the layout to be updated based on the specific choice in "SELECTION".

 

I have tried using a Script Trigger of on OnObjectModify or OnObjectSave calling a second script named UpdateSelection that looks like this:

 

Commit Records/Requests [ With dialog: On ]

//Assuming need to commit the drop down choice in SELECTION

Set Field By Name [ KEY ;

Case ( SELECT="A" ; "Key is 1234" ;

SELECT="B" ; "Key is 4567";

SELECT="C" ; "Key is 8888";

SELECT="D" ; "Key is 9999" ]

Commit Records/Requests [ With dialog: On ]

//Assuming need to commit the changes in KEY

 

Neither seems to be working.  Any suggestions?

 

Outcomes