Hide Form Field based on another field value

Hello everyone, I am looking for a code snippet that would allow me to show or hide a BAQCombo on a form based on the value of another field. On the end indirect screen in MES, we want the user to be forced to enter a value in a field when certain indirect codes are used. I have a method directive setup for the field requirement to force them to enter a value, but I would like the field to simply not show unless the certain indirect codes are used.

I figured this out using rules. It wasn’t clear to me that because my BAQCombo had an EpiBinding to the ProjectID field I just needed to select the ProjectID field in the form actions. I am all set.