Using JS script for risk assessment assignment
Hello again Acrobat community!
I am creating a form for a client that utilizes radio buttons for various questions that are asked throughout the form, I have seven groups (Group1, Group2..... etc) with Yes and No selections. At the bottom of the form they would like a box which I have labeled severityScore that I would like to assign "Low Risk", "Moderate Risk" or "High Risk" text in the box as well as a yellow, orange, or red backround fill for the box. As an example if the user were to answer No to the first two questions, there would be no change to the severityScore text field and they would be done using the form. If they answer yes to question one the severityScore box would display Low Risk text and have backround of yellow and they would move on to question two, if they answered no to question two, Low RIsk with yellow backround would remain and they would be finished. If they answered Yes to question two they would move on to question three where if they answered No, Low Risk with yellow backround would remain but if they answered Yes then the severityScore textbox would go from populating Low Risk text and yellow backround to Moderate Risk text with orange backround. I guess what I am looking for is a jumping off point to get this started, as in, should I handle this by assigning values to the buttons and then totaling or what would be the smoothest way to proceed? Could someone provide a starting point for this? Thanks in advance!!!
