Dropdown box populating text after selection help
- March 21, 2023
- 2 replies
- 809 views
Hello experts. I am having trouble coding this PDF Form.
I am trying to have a drop box at the top of my form that gives the option to select a hospital.
Field1 has a selection of either Riverside Community Hospital or Los Robles Regional Medical Center
My text boxes below would need to fill in Field2, Field3, & Field4 information that corresponds to each hospital.
Here is what I have so far: I've also tried to paste it in the validate and calculate custom fields and nothing is happening to my Fields below. Please help! 🙂
if(event.value == "Riverside Community Hospital"){
this.getField("field2").value = "Adrian Arevia";
this.getField("field3").value = "Zach Johnson";
this.getField("field4").value = "Adam Rudd";}
else if(event.value == "Los Robles Regional Medical"){
this.getField("field2").value = "Denise Bell";
this.getField("field3").value = "Andrew Lane";
this.getField("field4").value = "Natalie Mussi";}
else {
this.getField("field2").value = "";
this.getField("field3").value = "";
this.getField("field4").value = "";}
