Need help new to coding, thanks for your patience in advance;
I have a simple survey: if you select “Yes” from the radio button (see example) then I want to add 1 to my results (“Group 1 Results” id=group1Results.
if you select “No” then nothing happens
At the next question … again wanting the same thing for an “Yes” selection. add 1 to my results box
*Note… my questions and radio buttons are coming from a dataset, but the groupResults i’m trying to gather on the fly.
ex. If you were to select “Yes” for all 3 questions then my attention would be that Group 1 Results should now be equal to 3
With some elementary code… I can see that my value is changing, but not updating on my form.
from the console.logs I can see that num increased by 1, but text 38 does not update on the form. It still shows “Heading 6”
Any help will be greatly appreciated.
*Note - Not sure if I should be using a hook or even how to use a hook to get my resolve.