Highlighted

Declaring Variables

New Here ,
Sep 03, 2020

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.

Topics

Create PDFs, PDF forms, Standards and accessibility

Views

23

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Declaring Variables

New Here ,
Sep 03, 2020

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.

Topics

Create PDFs, PDF forms, Standards and accessibility

Views

24

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Sep 03, 2020

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Sep 04, 2020

Copy link to clipboard

Copied

Since y = z you just have to use y or z, not both.

 

var x = y;

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Resources
One Stop Solution for Acrobat
Edit a PDF