Skip to main content
Participating Frequently
June 12, 2025
Question

Custom Calculation Script keeps disappearing

  • June 12, 2025
  • 1 reply
  • 1060 views

I keep trying to add the following custom calculation script to the field named AKA and I cannot get it to "stay". It just defaults back to "Value is not calculated." Am I missing a step?  I am going crazy trying to figure it ou. 🙂  I have attached my file. 

 

The script I am trying to utilize is: 

event.value = this.getField("Name on Loan").valueAsString + " aka " + this.getField("Name on Title").valueAsString;

 

I am trying to autopopulate this field based off of the "Name of Field" and the "Name on Title" fields with "aka" inserted in between them.

1 reply

PDF Automation Station
Community Expert
Community Expert
June 12, 2025

There's a glitch when you access the field properties from the fields panel.  Access the properties directly by right-click > properities directly on the field, or double-clicking the field while in form prepare form mode.

MeredtihAuthor
Participating Frequently
June 12, 2025

I am double clicking on the field to access the properties. I have tried deleting the fields and recreating them, and the same issue happens. The script just won't stay. 

PDF Automation Station
Community Expert
Community Expert
June 12, 2025

Unfortunately I can't access the attachment you uploaded.  It is stuck on "Virus scan in progress".  Are you able to add any other calculation methods to the field, like simplified field notation, or Value is sum of...?