making some fields visible dynamically

karuchuakaruchua Member Posts: 151
how do i make some fields visible depending on what the user chooses on the first field

for example, i have the type is 1,2 and 3, so if he/she chooses 1,only certain fields would be visible,if he changes to 2,only certain fields will be visible.

trying the code below on validate of the field but doesnt work as expected
IF "Item Type"="Item Type"::Pump THEN BEGIN
     CurrForm.Canopy.VISIBLE(FALSE);
     CurrForm."Electric/Manual".VISIBLE(FALSE);
     CurrForm."Low/High/Speed".VISIBLE(FALSE);
     CurrForm.KVA.VISIBLE(FALSE);
END

ELSE IF  "Item Type"="Item Type"::Generator THEN BEGIN
    CurrForm.Cooled.VISIBLE(FALSE);
    CurrForm."C/W Motor".VISIBLE(FALSE);
    CurrForm.KW.VISIBLE(FALSE);
    CurrForm."Volume/Head".VISIBLE(FALSE);
    CurrForm."Water Quality".VISIBLE(FALSE);
    CurrForm.HP.VISIBLE(FALSE);
    CurrForm."Speed(RPM)".VISIBLE(FALSE);
        
END

Comments

Sign In or Register to comment.