PDF Form - remove buttons?
Copy link to clipboard
Copied
PDF forms which can be completed online and submitted via 'cfpdfform'.
So far i have the submission working great, saving a copy of the actual
completed pdf on the server and stripping out all of the submitted data
, which is saved in a database with a datestamp and other important info.
These forms are being created in LiveCycle by staff members, with
specific formatting and details determined by them. Fortunately CF makes
it super easy to 'talk' to these forms.
The only issue I cannot sort out at this stage - each form has a
"submit" button, which passes the data and the PDF itself to a receiving
coldfusion page. When viewing the stored copy of the PDF after
submission, along with all the user's info filled in, the 'submit'
button is still there. This means the user can submit a form, click a
link to view/print his completed copy, and then easily click the
'submit' button again, going round and round.
*Q*
Is it possible to remove or disable specific PDF Form buttons with
coldfusion?
I looked at the 'flatten' option, but that appears not to work with
LiveCycle created forms.
--
Michael Evangelista, Evangelista Design
Web : www.mredesign.com Blog : www.miuaiga.com
Developer Newsgroups: news://forums.mredesign.com
Copy link to clipboard
Copied
Did you ever get an answer to this, Michael? It's eluding me at the moment.

Copy link to clipboard
Copied
What I've done is:
- Put a hidden field in the PDF form called processed.
- Set it's value to 0
- Make sure it is not included in the signature controlled list if you use a signature.
- Have the submit button check the value of the processed field and if it is 0 submit the form.
- When the form arrives on the server pull the form field values into an XML document
- Update the processed field with a value of 1.
- Write the PDF to the file repository with the XML document and overwritedata set to "yes"
This will allow the user to click on the Submit button all they want but because you've changed the value of processed to 1 it won't submit again.
Kevin
Copy link to clipboard
Copied
That sounds really technical, how do you go about that?
More importantly; is there a way to use that technique to simply remove the "Submit form" button?
We need the forms editable by advisors around the country, it has to be possible to save the form; but we don't need the email option since the forms have to be printed and then signed by our customers before they have any value to us.
Thank you / Best regards,
Harald Johnsen Vøyle
Mac Designer
Pitney Bowes Management Services Norway AS
Dokumentsenteret Nordea, Oslo

