Customization to sales order entry

Is it possible through custom office to show UDFs in the lines tab based on a selection of the a UDF in that line? For example, when entering the items on the line tab, the user selects an option product type UDF for that line and then other UDFs fill the bottom split panel based off that selection.