MAIN DEFINE w ui.Window DEFINE f ui.Form DEFINE custid INTEGER DEFINE custname CHAR(10) OPEN WINDOW w1 WITH FORM "customer" LET w = ui.Window.getCurrent() LET f = w.getForm() INPUT BY NAME custid, custname ON ACTION hide CALL f.setFieldHidden("customer.custid",1) CALL f.setElementHidden("label_custid",1) ON ACTION show CALL f.setFieldHidden("customer.custid",0) CALL f.setElementHidden("label_custid",0) END INPUT END MAIN