JavaScript to auto populate text field value

Explorer ,
Mar 14, 2018

Copy link to clipboard

Copied

hi, i need javascript to manage my bellow issue. can u pls help me.. thanks in advance.

"aa" field is empty, "bb" field also empty

"aa" field have some value then "bb" field value = "cc" field value

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

Enter this code as the custom calculation script of "bb":

event.value = (this.getField("aa").valueAsString=="") ? "" : this.getField("cc").valueAsString;

TOPICS
Acrobat SDK and JavaScript, Windows

Views

125

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

JavaScript to auto populate text field value

Explorer ,
Mar 14, 2018

Copy link to clipboard

Copied

hi, i need javascript to manage my bellow issue. can u pls help me.. thanks in advance.

"aa" field is empty, "bb" field also empty

"aa" field have some value then "bb" field value = "cc" field value

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

Enter this code as the custom calculation script of "bb":

event.value = (this.getField("aa").valueAsString=="") ? "" : this.getField("cc").valueAsString;

TOPICS
Acrobat SDK and JavaScript, Windows

Views

126

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
Mar 14, 2018 0
Most Valuable Participant ,
Mar 14, 2018

Copy link to clipboard

Copied

Enter this code as the custom calculation script of "bb":

event.value = (this.getField("aa").valueAsString=="") ? "" : this.getField("cc").valueAsString;

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...
Mar 14, 2018 0
omanbux LATEST
Explorer ,
Mar 14, 2018

Copy link to clipboard

Copied

always amazing support form try67. thanks a lot..

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...
Mar 14, 2018 0