I know there are many other threads on this but i can't seem to make heads or tails of them and make them work in my code. I have multiple dropdowns on a page with a yes/no answer each question has sub questions if yes is chosen.. I would like to have the sub questions only display if yes is chosen from the primary question. that way i can clean up the page and get red of the if yes then this verbage.
Any help would be appreciated on the best way to do this :)
<!DOCTYPE html>
<html>
<head>
~[wc:gwParentReg]
~[wc:guardian_header]
~[if#stuCheck.isstudent]
<p>Your account does not allow access to this page.</p>
[else#stuCheck]
<div style="margin: 20px; 10px; 10px; 0px;">
<div style="float:right" id="progDiv"></div>
<div style="font-weight:bold; font-size:large; padding-right:10px">E-Registration - Health Record Information: ~([01]lastfirst)</div>
<span class="gwExample">Please provide the health information requested below. If you have specific issues or concerns about your child's health, contact the school nurse.</span>
</div>
<form name="eReg" id="eReg">
<div align="center">
<img src="/images/gwReg/gwDelete.gif" alt="Remove Value" title="Remove Value" border="0px" class="gwDelete" />
Click on this image to indicate that the data on file at the school needs to be removed.
</div>
<table border="0" cellspacing="0" cellpadding="4">
<tr><td class="bold"> </td><td width="200" style="font-weight:bold; font-size:larger">On file with the school</td>
<td></td><td style="font-weight:bold; font-size:larger">Please make your updates or changes.</td>
</tr>
<tr class="headerRow">
<td class="bold" colspan="4" align="center">Health Concerns</td>
</tr>
<tr>
</tr>
<tr class="~[evenoddrow]">
<td class="bold">DIABETES:</td><td id="HRI_Diabetes">~([01]HRI_Diabetes)</td><td class="gwCen"></td>
<td><select name="eReg|HRI_Diabetes" id="eReg|HRI_Diabetes">
<option></option><option value="Y">Yes</option><option value="N">No</option>
</tr>
<tr class="~[evenoddrow]">
<td class="bold" align="center">If yes list medicine to be given at school:</td><td id="HRI_Diabetes_Meds">~([01]HRI_Diabetes_Meds)</td><td class="gwCen"></td>
<td><input type="text" name="eReg|HRI_Diabetes_Meds" id="eReg|HRI_Diabetes_Meds" value="" size="30" /><span class="gwExample">medicine1, medicine2,</span></td>
</tr>
<tr class="~[evenoddrow]">
<td class="bold">ASTHMA:</td><td id="HRI_Asthma">~([01]HRI_Asthma)</td><td class="gwCen"></td>
<td><select name="eReg|HRI_Asthma" id="eReg|HRI_Asthma">
<option></option><option value="Y">Yes</option><option value="N">No</option>
</tr>
<tr class="~[evenoddrow]">
<td class="bold" align="center">If yes list medicine to be given at school:</td><td id="HRI_Asthma_Meds">~([01]HRI_Asthma_Meds)</td><td class="gwCen"></td>
<td><input type="text" name="eReg|HRI_Asthma_Meds" id="eReg|HRI_Asthma_Meds" value="" size="30" /><span class="gwExample">medicine1, medicine2,</span></td>
</tr>
<tr class="~[evenoddrow]">
<td class="bold">ALLERGIES:</td><td id="HRI_Allergies">~([01]HRI_Allergies)</td><td class="gwCen"></td>
<td><select name="eReg|HRI_Allergies" id="eReg|HRI_Allergies">
<option></option><option value="Y">Yes</option><option value="N">No</option>
</tr>
<tr class="~[evenoddrow]">
<td class="bold" align="center">If yes list medicine to be given at school:</td><td id="HRI_Allergy_Meds">~([01]HRI_Allergy_Meds)</td><td class="gwCen"></td>
<td><input type="text" name="eReg|HRI_Allergy_Meds" id="eReg|HRI_Allergy_Meds" value="" size="30" /><span class="gwExample">medicine1, medicine2,</span></td>
</tr>
<tr class="~[evenoddrow]">
<td class="bold">SEIZURES:</td><td id="HRI_Seizures">~([01]HRI_Seizures)</td><td class="gwCen"></td>
<td><select name="eReg|HRI_Seizures" id="eReg|HRI_Seizures">
<option></option><option value="Y">Yes</option><option value="N">No</option>
</tr>
<tr class="~[evenoddrow]">
<td class="bold" align="center">If yes list medicine to be given at school:</td><td id="HRI_Seizure_Meds">~([01]HRI_Seizure_Meds)</td><td class="gwCen"></td>
<td><input type="text" name="eReg|HRI_Seizure_Meds" id="eReg|HRI_Seizure_Meds" value="" size="30" /><span class="gwExample">medicine1, medicine2,</span></td>
</tr>
<tr class="~[evenoddrow]">
<td class="bold" align="center">Type of seizure:</td><td id="HRI_Seizure_Type">~([01]HRI_Seizure_Type)</td><td class="gwCen"></td>
<td><input type="text" name="eReg|HRI_Seizure_Type" id="eReg|HRI_Seizure_Type" value="" size="30" /></td>
</tr>
<tr class="~[evenoddrow]">
<td class="bold" align="center">Date of last seizure:</td><td id="HRI_Seizure_LastDate">~([01]HRI_Seizure_LastDate)</td><td class="gwCen"></td>
<td><input type="text" name="eReg|HRI_Seizure_LastDate" id="eReg|HRI_Seizure_LastDate" value="" size="30" /></td>
</tr>
<tr class="~[evenoddrow]">
<td class="bold" align="center">Average duration of seizure:</td><td id="HRI_Seizure_Average_Duration">~([01]HRI_Seizure_Average_Duration)</td><td class="gwCen"></td>
<td><input type="text" name="eReg|HRI_Seizure_Average_Duration" id="eReg|HRI_Seizure_Average_Duration" value="" size="30" /></td>
</tr>
<tr class="~[evenoddrow]">
<td class="bold" align="center">Action to be taken at school in event of seizure:</td><td id="HRI_Seizure_Action">~([01]HRI_Seizure_Action)</td><td class="gwCen"></td>
<td><input type="text" name="eReg|HRI_Seizure_Action" id="eReg|HRI_Seizure_Action" value="" size="30" /></td>
</tr>
<tr class="~[evenoddrow]">
<td class="bold">HEART CONDITION:</td><td id="HRI_Heart_Condition">~([01]HRI_Heart_Condition)</td><td class="gwCen"></td>
<td><select name="eReg|HRI_Heart_Condition" id="eReg|HRI_Heart_Condition">
<option></option><option value="Y">Yes</option><option value="N">No</option>
</tr>
<tr class="~[evenoddrow]">
<td class="bold" align="center">If yes list medicine to be given at school:</td><td id="HRI_Heart_Condition_Meds">~([01]HRI_Heart_Condition_Meds)</td><td class="gwCen"></td>
<td><input type="text" name="eReg|HRI_Heart_Condition_Meds" id="eReg|HRI_Heart_Condition_Meds" value="" size="30" /><span class="gwExample">medicine1, medicine2,</span></td>
</tr>
</table>
</form>
<table>
<tr><td colspan="2" align="right" style="font-weight:bold">Please click the Save button to save your progress and continue to the next screen.</td>
<td class="bold" align="right" style="width:150px; text-align:right">
<form action="gwPerms.html?sa=N" method="POST" id="frm2" >
<input type="hidden" name="ac" value="autosendupdate" />
<input type="hidden" name="[01]eRegIP" id="eRegIP" value="" />
<input type="hidden" name="[01]eRegEmergency" id="eRegEmergency" value="" />
<input type="button" name="gwSubmit" value="Save" id="gwSubmitBtn" onClick="gwDoChecks('eRegEmergency','~[ip address]')" />
<img src="/images/gwReg/gwProcessing.gif" alt="Processing" title="Processing" style="display:none" id="gwProcessPict" />
</form>
</td>
</tr>
</table>
<input id="activeNav" type="hidden" value="#btn-gwEReg"/>
<script language="javascript">
if(!gwParEngineFile || !gwParRegFile)
alert("E-Registration is not available at this time. Please try again later. If this problem continues, please contact your child's school.");
else
{
loadData('eRegEmergency');
gwShowProgress(document.location.href);
}
document.body.style.cursor = '';
</script>
[/if#stuCheck.isstudent]
~[wc:guardian_footer]
~[wc:gwLogo]
</body>
</html>