Skip to main content
Jme2712
Participant
July 20, 2017
Question

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

  • July 20, 2017
  • 1 reply
  • 294 views

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

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
July 20, 2017

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

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