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

Combining two text fields in a form

Guest
Jun 22, 2016 Jun 22, 2016

I have created a form with 'Physician First Name' and 'Physician Last Name'; how can I get a new field 'Physician Name' to generate automatically combining the first and last name fields once information has been entered into each field?

TOPICS
Acrobat SDK and JavaScript , Windows
456
Translate
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
Community Expert ,
Jun 22, 2016 Jun 22, 2016

Use this code as its custom calculation script:

event.value = this.getField("'Physician First Name").valueAsString + " " + this.getField("'Physician Last Name").valueAsString;

Translate
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
Guest
Jun 22, 2016 Jun 22, 2016
LATEST

Thank you!!!

Translate
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