I am stuck on one thing.
I have a radio button that is clicked that will bring up certain fields. I have included the hidden/visible fields that work just fine.
I have a check box further down that when clicked brings up certain fields based on the radio button mentioned. I have hidden the fields and coded to hide the fields and show the fields where necessary. But, I need the fields related to the checkbox to execute the same instructions as the radio button. If 1 is true for the radio button, I need it to show for the fields at the top and also for the fields at the bottom. At this point, if I have it visible for the radio button then it is visible for the checkbox regardless of what I input there. I really hope this makes sense. Not quite sure how to explain this.
Thank you!
Coding for the radio button:
if(this.rawValue=="1")
{
FORM.Main.sfConventional.tblChecklist.B2Ince.presence = "hidden";
FORM.Main.sfConventional.tblChecklist.B2Incf.presence = "hidden";
}
else
{
FORM.Main.sfConventional.tblChecklist.B2Ince.presence = "hidden";
FORM.Main.sfConventional.tblChecklist.B2Incf.presence = "hidden";
}
For the checkbox:
if (this.rawValue=="1")
{
FORM.Main.sfConventional.tblChecklist.B2Ince.presence = "visible";
FORM.Main.sfConventional.tblChecklist.B2Incf.presence = "visible";
}
else
{
FORM.Main.sfConventional.tblChecklist.B2Ince.presence = "hidden";
FORM.Main.sfConventional.tblChecklist.B2Incf.presence = "hidden";
}