Skip to main content
Participant
October 1, 2021
Question

Using a button in a PDF to save a PDF fill-in form from fields in the PDF?

  • October 1, 2021
  • 1 reply
  • 713 views

I have been tasked with making fill in forms for a department in our office. The files have to be saved in a specific folder and with a specific name. I would like to generate the folder name and the file name from some of the fields in the form itself. All forms will have 3 fields [Case #], [Ref. #], and [Name].

So the folder format will need to be EX:   “c:>\forms\[Case#]-[Ref]\ [Case#]-[Ref#] [Name] – form name and ver”

If I would enter [Case#] = 002415  [Ref#] = 002  [Name] = John Doe

The folder and file name would be “c:\forms\002415-002\002415-002 John Doe – Referral V3.pdf”

I would like to hard code the name of the form in so they user doesn’t have to do anything jest fill out the form and click the button.

I have a few articles on how to do this but they don’t give step by step instructions jest code and im not sure where to place the code.

Is something like this possible?

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
October 1, 2021

It is, but under some limitations:

1. The folder path has to exist in advance. A script can't create new folders.

2. In order to silently save a file under a specific name you need to run the code from a privileged context, which usually mean a script file installed on the local machine of each user who will use this form. Is that possible in your case?

Participant
October 4, 2021
Yes, it is possible to create a script on the tablets.
Can the script be the same on all the tablets or does it have to be personalized?


Thank You,

[email sig]


________________________________

Greene_County_Disclaimer:

This email or fax is for the use of the intended recipient(s) only. If you have received this email or fax in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not keep, use, disclose, copy or distribute this email or fax without the author's prior permission. We have taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. We cannot accept liability for any loss or damage caused by software viruses. If you are the intended recipient and you do not wish to receive similar electronic messages from us in future then please respond to the sender to this effect.
try67
Community Expert
Community Expert
October 4, 2021

This is not possible on a mobile device, if that's what you mean.