MAS

MAS

I am trying to get a Number field to auto populate in a form, but I keep getting the ID showing.Trying to learn the new Script Builder.
Forms - MAS (Lock No), Terminal Information (Mas), Technician Service Call (Mas)
As the dispatcher, dispatches the call, she selects the Terminal No and the info auto Populates the fields. The problem is the MAS field populates with the ID record number.
see attached script;

//adding in MAS SN to app
//Variable = Lock, Terminal Information is Form to get data from, Lock No is from MAS Field in Form, Input Mas_Lock no to Tech Service Call Form

Lock = Terminal_Information[Terminal_ID == input.Terminal_ID];

//Mas_Lock information to Mas Field in Tech Service Call Form
Mas_Lock=Temp.MAS;