Auto pop up UDFs after selection

SOLVED

Hello,

In Sage 100, I've added a UDT with a list of items, and a UDF onto Sales Order Header which enables user to select an item from the UDT. After selection, I also want to pop up other fields (also UDF) based on the selected item. Basically, pop up other attributes in the UDT of selected item.  Just like the sales order entry auto pops the Bill To and Ship To after user selects the customer. I assume I need to write a script, right? Would some one advise good material I can refer to? 

Thank you.