Skip to main content
Known Participant
May 29, 2016
Answered

if a form is "a" then auto write form "b"

  • May 29, 2016
  • 1 reply
  • 396 views

i have 3 dropdown menu forms, form a , b and form c.

form "a" have a dropdown menu with 3 options

1

2

3

if i select 2 the system auto write in form b "red"

if i select 1 the system auto write in form b "green"

if i select 3 the system auto write in form b and form c "green"

any help with this script?

This topic has been closed for replies.
Correct answer try67

As the custom validation script of the first field enter this code:

if (event.value=="1") {

    this.getField("Dropdown 2").value = "green";

} else if (event.value=="2") {

    this.getField("Dropdown 2").value = "red";

} else if (event.value=="3") {

    this.getField("Dropdown 1").value = "green";

    this.getField("Dropdown 2").value = "green";

} else {

    this.getField("Dropdown 1").value = "";

    this.getField("Dropdown 2").value = "";

}

1 reply

Inspiring
May 29, 2016

You appear to be missing a number of details.

Do the forms exist as a file or do they need to be created?

Are the forms "hidden" in the form and appear as added or new pages in the PDF?

For form A are we writing the "text" into the page or do you mean something else?

Known Participant
May 30, 2016

if user select 1 then dropdown menu 2 write "green"

if user select 2 then dropdown menu 2 write "red"

if user select 3 then dropdown menu 2  & dropdown menu 3 write "green"

Known Participant
May 30, 2016

something like this but in adobe dc