Copy link to clipboard
Copied
Hello again community!
I am preparing a form and would like to embed some logic via JS and am unsure what would be the best approach for my issue. What I am trying to do is I have one "section/group" that consists of two radio buttons and two "sections/groups" of checkboxes. naming wise some examples arew sectionOneRadioOne, sectionOneRadioTwo etc... what I would like to do is once a user gets four or five sections worth of selections into the form I would like to embed a script that sort of scans the form up to a determined point and throw notifications/warnings if a section was missed. So in the case of the first section that contains only two radio buttons, if they were halfway down the form, or making selections on page two lets say, they would make a selection on the first section of page two and it would check and see that no selection of the grouping of the first section of page one was made and throw up an error clear checkbox or radio button they were trying to make and just hold them there till they went back and made a selection where missed. So, lets say I have 20 checkboxes in section two of page one, I need AT MINIMUM one selection made, I get to page two and the first selectable series on page two is two radio buttons, I click one, the form JS catches that I missed making a selection in that twenty box section on page one, throws an error box that the user has to click OK and clears their selection attempt that they made on the radio buttons, so in effect they can go no further until the error is rectified. Thank you SO much in advance for any thoughts/insight into this!!!
Have something to add?