Copy link to clipboard
Copied
hi! i really am not sure if this is the right place to post this question since i visited this community just this once. I am currently using Acrobat DC.
can i declare a variable like this?
var x = (y = z)
where text field value z is equal to the value of dropdown y and i would the equal values stored in a variable?
hope i get the help i need. thank you and have a nice day.
Copy link to clipboard
Copied
hi! i really am not sure if this is the right place to post this question since i visited this community just this once. I am currently using Acrobat DC.
can i declare a variable like this?
var x = (y = z)
where text field value z is equal to the value of dropdown y and i would the equal values stored in a variable?
hope i get the help i need. thank you and have a nice day.
Copy link to clipboard
Copied
var x = (y = z)
This uses the value of variable z and copies the value to variable y and x.
You can execute the script in the Javascript console.
Copy link to clipboard
Copied
Since y = z you just have to use y or z, not both.
var x = y;