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

New Here ,
Jul 20, 2017

Copy link to clipboard

Copied

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, Macintosh, Windows

Views

73

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

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

New Here ,
Jul 20, 2017

Copy link to clipboard

Copied

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, Macintosh, Windows

Views

74

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
Jul 20, 2017 0
try67 LATEST
Most Valuable Participant ,
Jul 20, 2017

Copy link to clipboard

Copied

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

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

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...
Jul 20, 2017 1