There has got to be a simple line of code to do this

I'm changing the color of a radio button after a click on a button event which grade a test... Here is a sample of my code for the first two questions

Info radio button; Name Q1, Q2, Q3 - Q58 (5 possible answers for each Q"" ") Radio choice (on 5), b, c, d, e

Var answer = this.getField("Q1").value;

var Grade1;

If (response == 'a') NOW if THE ANSWER IS NOT 'a' THEN THE BUTTON of RADIO for THE ANSWER CORRECT BECOMES GREEN "in this group of answers for Q1" click on the "Score Test" button

{var Grade1 = 1}

on the other

{var Grade1 = 0}

I would put the code here such as (if (response == "b", "c", "d", "e") and then (this radio button turns green) BUT I do not know how to identify the individual radio buttons group Q1 to tell which button to turn green...)

Var answer = this.getField("Q2").value;

var Grade2;

If (response == "e")

{var Grade2 = 2}

on the other

{var Grade2 = 0}

{var Grade2 = Grade1 and Grade2}

this.getField("SumCorrect").value = Grade2;     Grade2 would actually Grade58 which is the last question.

I guess I could use a statement as if (response is not "a") make radio button, but I still don't understand how to identify with the group radio button...

Tags: Acrobat

Similar Questions

Maybe you are looking for

  • No css/html is loading properly. Firefox crashed and now what happens.

    I was using Firefox and it crashed, now when I try to open any site, they show only by look like the picture as an attachment. Is it possible a key has been pressed or something is off when it has problems? I can't understand how to run again.

  • A lot of pop-up windows and sticking in the browser behavior

    Have weird ads via safari and chrome. A lot of popup displays in any browser and also a few become clickable buttons disabled and typing becomes almost impossible through any program that uses the web. When you are not running any browser, everything

  • HP Photosmart all-in-one scan button does not work - Windows 7

    "After you have reinstalled C4750 all-in-one software on my desk, I am constant flashes of" Windows configuration... TryApp ". In addition, the printer Scan to PC button does more work. Scans can only be initiated from PC. It would seem that the scan

  • DV7-7300 new not autoconnect half the time

    Brand new.   Windows 8 x 64 2740qm intel If I do a "reboot" the without wire won't autoconnect 90% of the time and I also have to connect manually. If I do a normal closed and start it connect to 95% of the time. Another machine is an old DV6 and it

  • print without margins Deskjet 3070

    Hi - I tried to print without margins on A4 with my Deskjet 3070, but whenever he has a white border on one side and along the bottom of the page. I've checked and checked that I put it up to do borderless, but I still get the white edges. Can anyone