i am trying to set a radio button for a selection based on previous user input, and if they select a disclaimer clause then allow them to change their selections... here is the code:
1 /* make sure Toews Model is appropriate for selection */
2 var radeoBottun = this.getField("H_Strategist_Toews");
3 var totalScore = this.getField("SC_TotalScore");
4 var useRecommendedModel = this.getField("D_Toews_Model");
5 var general = "6"
6
7 if ( this.getField("H_Toews_Strategist").isBoxChecked(0) == 1 ) {
8 if ( totalScore.value > 109 ) {
9 app.alert("1 for testing we got here...");
10 if ( radeoBottun.value >= 1 ) {
11 app.alert("2 for testing we got here...");
12 if ( ( radeoBottun.value != 6 ) && ( useRecommendedModel.value != 2 ) ) {
13 app.alert("3 for testing we got here...");
14 if ( radeoBottun.value != "") {
15 this.getField("H_Strategist_Toews").value = "Off";
16 }
17 app.alert("In order to select a model inconsistant with the recomended model you
18 MUST select paragraph 2 on page 5, which states you do NOT want to use the recommended
19 investment model determined for your situation.");
20 }
21 }
22 }
23 }
now on line 15 i am getting a 'InvalidSetError: Set not possible, invalid or unknown.' i have also tried setting it with 6, 5, 4, 1, 0, etc (there are 6 radio buttons in the group). i dont know what i could be doing wrong here, any ideas?
thanks,
sloopy.
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com