Skip to main content
Participant
April 10, 2025
Answered

Fillable Form, Javascript button not working after close

  • April 10, 2025
  • 1 reply
  • 197 views

Hi All,

 

I have a fillable form and added a button to attach invoices/receipts. Intially it works, when I close the file and reopen (no trust popups, etc) the button no longer works. Below is the code, any ideas? If it helps there is a second button to email the file once completed to a power automate URL but that button works with no issues. 

 

this.importDataObject("Attachment");

Correct answer try67

Works fine for me, but be aware you're overwriting the first file the second time you run it, as you're using the same name. You need to modify it to be a unique value if you don't want that to happen.

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
April 10, 2025

Works fine for me, but be aware you're overwriting the first file the second time you run it, as you're using the same name. You need to modify it to be a unique value if you don't want that to happen.