Referencing checkbox value in an input in the same form
-
I have a form on a medical site that allows staff to create a PDF on form submission; the form contains information such as patient name, diagnosis, and graft donor. It also contains the procedures necessary for the patient, such as dental implants. The PDF is supposed to have “blurbs” based on what procedures are selected, or pieces of information that are inserted onto the PDF based on what is clicked (if you have a procedure that involves IV, a blurb about IV appears after the IV checkbox is clicked). I do this by creating inputs that have default values (the default values being the blurbs) that only show when certain procedure checkboxes are clicked. For example, when “Ridge preservation” is clicked as a procedure, the following blurb appears:
“I understand that the graft will be taken from {{gdonor}} and further that:” – and it continues from there.
As you can see in the blurb, I need {{gdonor}} to be the value that is clicked on the “graft donor” checkbox.
My question is: is there a way to insert data from one part of the form (the value of a clicked checkbox, for example) into another part of the form (the input value) on the same submission?
Thanks for the support. Let me know if there are any questions.
- The topic ‘Referencing checkbox value in an input in the same form’ is closed to new replies.