I am creating a website on which user enters data and then it is submitted to a DB and simultaneously the user gets a mail.
<body>
<form method="post" action="">
<input id="input-3" name="change" type="text" placeholder="CHG000010333653" required autofocus style="text-transform:uppercase" pattern=^CHG[0-9]{12,12}$ title="The format should be in CHG000010333653 "/>
<label for="input-3">
<span class="label-text">Change Number</span>
<span class="nav-dot"></span>
<div class="signup-button-trigger">Begin</div>
</label>
<input id="input-4" name="waiver" type="checkbox" placeholder="Yes/No/NA" required pattern=([YESNOyesnoAa]){2,3} title="Input Should be Yes or No "/>
<label for="input-4">
<span class="label-text">Waiver ID Entered</span>
<span class="nav-dot"></span>
</label>
<input id="input-5" name="inc" type="text" placeholder="Yes/No" required pattern=([YESNOyesno]){2,3} title="Input Should be Yes or No " />
<label for="input-5">
<span class="label-text">INC/RITM Related</span>
<span class="nav-dot"></span>
</label>
<input id="input-6" name="environment" type="text" placeholder="Production/QA/Development" required pattern=([A-z]){2,11} title="Input Should be Production, QA or Development "/>
<label for="input-6">
<span class="label-text">Server Environment</span>
<span class="nav-dot"></span>
</label>
<input id="input-7" name="support" type="text" placeholder="Windows/Virtualisation/Storage" required pattern=([A-z]{4,11}+[lL0-9]{2,2}) title="Input Should as Windows L1 "/>
<label for="input-7">
<span class="label-text">Server Support Group</span>
<span class="nav-dot"></span>
</label>
<input id="input-8" name="attach" type="text" placeholder="Yes/No" required pattern=([YESNOyesno]){2,3} title="Input Should be Yes or No "/>
<label for="input-8">
<span class="label-text">Attachments Attached (Pre Implementation/Waiver/Required Mails)</span>
<span class="nav-dot"></span>
</label>
<input id="input-9" name="schedule" type="text" placeholder="Yes/No" required pattern=([YESNOyesno]){2,3} title="Input Should be Yes or No "/>
<label for="input-9">
<span class="label-text">Schedule is correct</span>
<span class="nav-dot"></span>
</label>
<input id="input-10" name="type" type="text" placeholder="Yes/No" required pattern=([YESNOyesno]){2,3} title="Input Should be Yes or No "/>
<label for="input-10">
<span class="label-text">Change Type Correct</span>
<span class="nav-dot"></span>
</label>
<input id="input-11" name="affect" type="text" placeholder="Yes/No" required pattern=([YESNOyesno]){2,3} title="Input Should be Yes or No "/>
<label for="input-11">
<span class="label-text">Affected CI's Entered</span>
<span class="nav-dot"></span>
</label>
<input id="input-12" name="risk" type="text" placeholder="Yes/No" required pattern=([YESNOyesno]){2,3} title="Input Should be Yes or No "/>
<label for="input-12">
<span class="label-text">Risk Assesment Correct</span>
<span class="nav-dot"></span>
</label>
<input id="input-13" name="ref" type="text" placeholder="Yes/No" required pattern=([YESNOyesno]){2,3} title="Input Should be Yes or No "/>
<label for="input-13">
<span class="label-text">Reference Change Correct</span>
<span class="nav-dot"></span>
</label>
<input id="input-14" name="priority" type="text" placeholder="Yes/No" required pattern=([YESNOyesno]){2,3} title="Input Should be Yes or No "/>
<label for="input-14">
<span class="label-text">Change Priority Correct</span>
<span class="nav-dot"></span>
</label>
<button type="submit">Submit Details</button>
<p class="tip">Press Tab</p>
<div class="signup-button">Begin</div>
</form>
<script>
So what I want to add an extra input (text input for comments) if any of the input is other than "Yes" for input-4, input-5, and input-7 to input-14. I am using CSS for UI (Which is why I am hesitant to change it to a Checkbox/Dropdown menu due to the design) and the site is deployed using IIS.
So is there anyway to do this? The Submit button submits the data to MS Access file.
From what I have searched it can be done(possibly) via JS but I don't have much experience with it so any guide/help would be appreciated.
Edit1: The Code https://codepen.io/shwetanshu/pen/XgBLwW My target is if there is any "yes" in first 4 input fields then a fifth one should come as comments. Otherwise not.