TOPIC
How to clear values from a disabled Choice control using custom JavaScript.INSTRUCTIONS
This example outlines two Choice controls, which have been assigned the variables Choice1 and Choice2; where each is a radio button and the choices for Choice2 are "Enter Choice #1", "Enter Choice #2" and "Enter Choice #3".When Choice1 is changed, the JavaScript will remove the value for Choice2, however this can be altered by using an IF statement to determine if the field should be cleared.
NWF$(document).ready(function() { var choice = NWF$("#" +Choice1); choice.change(function() { NWF$("#" + Choice2).find("input:radio[value='Enter Choice #1']").attr("checked",false); NWF$("#" + Choice2).find("input:radio[value='Enter Choice #2']").attr("checked",false); NWF$("#" + Choice2).find("input:radio[value='Enter Choice #3']").attr("checked",false); } ); } );