Skip to main content
Inspiring
January 21, 2026
Question

Overriding custom calculation script in text box

  • January 21, 2026
  • 1 reply
  • 32 views

Is it possible to still type in a text box that contains this in the calculation script? I want to keep this script, but if I type anything in Text1, I want that to override the calculation script. I'm just trying to avoid needing two different text boxes.

event.value = this.getField("Buyer Info").value + "  " + this.getField("ADD1").value + " " + this.getField("ADD2").value + " " + this.getField("KEEP KY").value + " " + this.getField("ADD3").value

 

1 reply

PDF Automation Station
Community Expert
Community Expert
January 21, 2026

https://pdfautomationstation.substack.com/p/another-method-for-calculation-vs

 

if(event.source && (event.source.name=="Buyer Info" || event.source.name=="ADD2" || event.source.name=="ADD2"|| event.source.name=="KEEP KY" || event.source.name=="ADD3"))
{
event.value = this.getField("Buyer Info").value + " " + this.getField("ADD1").value + " " + this.getField("ADD2").value + " " + this.getField("KEEP KY").value + " " + this.getField("ADD3").value
}