Skip to main content
Participant
July 14, 2020
Question

Working with Imported Data in Acrobat DC

  • July 14, 2020
  • 1 reply
  • 630 views

When data is pushed into pdf forms, is it different than being manually entered?  I have calculation scripts that don't seem to fire based upon field values, and sometimes field formatting is ignored.  Is this imported data somewhere else that I can't reference it with .value?  Or are there only certain things I can do with it after it's imported? 

 

I recently wanted to make the value of 5 fields zero if another field was not blank, but the import just blew the numbers in regardless of calculation order or if I used .value with the target fields or not - it didn't replace the values.  I do have a calculateNow function at the Document level. 

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
July 14, 2020

Yes, it's different. It doesn't trigger any of the normal events that are triggered when data is entered manually.

You need to move the calculateNow command to execute after importing the data, or to save the file and then re-open it for it to run.

Chris6393Author
Participant
July 17, 2020

Thanks.  After the data is imported, the sytem generates a directory where I get and open the document. I also tried saving it elsewhere and reopening it. Is the field data stored somewhere else where I can't reference it with this.getField("<object>").value?  I tried assigning event.value to it in the field Calc, but it didn't work.  If I change a value in one of the fields manually, the calcs work.  How would I move the CalculateNow command as you mentioned?

try67
Community Expert
Community Expert
July 17, 2020

How are you importing the data, exactly?