I have created a safecracker form that has some fields that with show / hide depending on the previous filed selection. For example:
<label
for="med">Are you currently taking any prescribed medication?:</label>
<label><input
type="radio" name="med" value="Yes"{checked} id="med2" /> Yes</label><label><input
type="radio" name="med" value="No"{checked} id="med1" /> No</label>
<br>{clear}<br>
<div id="med">
<label for="medication" class="required">Please detail:</label> {field:medication}<br></div>
This code will show the {field:medication} if the yes radio button is selected. I can't use the normal code provided in the safecracker example as each field option needs to have a different id for the jquery action.
Unfortunately the {checked} code does not save the radio option when the form is saved. I'd appreciate any advice. Thanks