• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

JavaScript to auto populate text field value

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

TOPICS
Acrobat SDK and JavaScript , Windows

Views

611

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
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 14, 2018 Mar 14, 2018

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

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

Votes

Translate

Translate
Community Expert ,
Mar 14, 2018 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;

Votes

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
community guidelines
Participant ,
Mar 14, 2018 Mar 14, 2018

Copy link to clipboard

Copied

LATEST

always amazing support form try67. thanks a lot..

Votes

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
community guidelines