Hi
Have a bound dialog with an initial yes/no radio button, and submit / reset buttons. A yes response opens the rest of the dialog. A no response can be the initial selection, or a user might select no at any time during the form completion.
So am thinking of writing resetForm javascript on the onChange event of the yes/no radio button. So if a user does select no the form data is cleared. This is the code
var hasAsthma = {dialog.Object}.getValue('Asthma')
If hasAsthma == 'No'{
{dialog.Object}.resetForm();
}
But get a script error (expected ";") as soon as I select either yes or no.
Am I on the right track, and what I am doing wrong...
Thanks