Clearing the contents of a y/n field with Clear()

You can clear the contents of a Yes/No field using the Clear() property.

fld('Feild_Name_yn').Clear();

You may want to clear the contents of a field before or after you have hidden the field, so that its value does not affect other functions. For example:

function guardParents() {

if (Has_Child_Minor_scr == 'true') {
$('#Guard_Spouse_yn').show();

}

else {

fld('Guard_Spouse_yn').Clear();
$('#Guard_Spouse_yn').hide();

}

}