Hello, I need to create a form that, All fields are Hidden but If you select "Dealer Warranty" Radio Button, 9 of the 10 Text Fields will be visible but if you select "Service Technician" only 8 Fields will be visible but not necessarily the same ones.
Example:
I am using:
MAIN.Page1.RadioButtonList.Dealer::click - (JavaScript, client)
if (MAIN.Page1.RadioButtonList.Dealer.selectedIndex == 0)
{ MAIN.Page1.Distributor_Name.presence = "visible";
MAIN.Page1.Machine_Owner.presence = "visible"; }
else { MAIN.Page1.Distributor_Name.presence = "invisible";
MAIN.Page1.Machine_Owner.presence = "invisible"; }
MAIN.Page1.RadioButtonList.Service::click - (JavaScript, client)
if(MAIN.Page1.RadioButtonList.Service.selectedIndex == 0)
{ MAIN.Page1.Distributor_Name.presence = "visible";
MAIN.Page1.Machine_Owner.presence = "visible"; }
else { MAIN.Page1.Distributor_Name.presence = "visible";
MAIN.Page1.Machine_Owner.presence = "visible"; }
But it will only work on one of the fields and not the other. I need to do this with about 30 Text fields on the page.
Can someone please help!