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

If form field has text display "KG" in another form field

New Here ,
Jul 20, 2017 Jul 20, 2017

All,

Is there any way to make it so that if a field called "10 MARKED WEIGHT OF LOTRow1" has numerical data in it that "KG" is entered into "10 MARKED WEIGHT OF LOTRow1a" and if there is no numerical weight entered in "10 MARKED WEIGHT OF LOTRow1" that "10 MARKED WEIGHT OF LOTRow1a" is left blank. Any help is appreciated. I'm editing this on Mac for use on Windows PC.

Thanks

-J

TOPICS
Acrobat SDK and JavaScript , Windows
268
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 ,
Jul 20, 2017 Jul 20, 2017
LATEST

Sure. As the custom calculation script of the target field enter this code:

event.value = (this.getField("10 MARKED WEIGHT OF LOTRow1").valueAsString!="") ? "KG" : "";

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