Acrobat XI programmatically reset/clear all form fields when opening a PDF form

I've got a PDF form document that I'm working on.  I'd like to add something to it to programmatically clear or reset all form fields to blank when the document is opened.
Thoughts/ideas??
Mucho thanks!!

You can use the resetForm JavaScript method, either in the initial page's Page Open event or in a document-level JavaScript whic will execute when the document is opened.
http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.523.html

Similar Messages

  • Reader-enabled form from Acrobat is retaining interactive form fields when user saves the form

    This is an issue that has only recently come up. In the past it was not a problem to take a pdf, add interactive form fields to it in LiveCycle, then open the form in Acrobat and enable usage rights for Reader users.
    This allowed Reader users to fill out the form and save the results. With the most recent versions of Acrobat and Reader the user saves the form and the data AND the interactive form fields are saved in the resulting file - meaning that the data is still there to be changed. Clearly not what we want and not what Acrobat and Reader were doing previously.
    The form does properly display "You can save data typed in this form" when opened in Reader.
    I have got no response to this issue in the LiveCycle forum, and nothing shows up in a search. I would very much like to fix this, as it is affecting our entire library of pdf forms.

    In most instances the form is linked on the website, so the original form will cannot be overwritten.
    In some cases we have to supply an interactive pdf for a department that they will then distribute by email to various groups who are expected to fill the form out on submit on an ongoing basis. That is what I was meaning by the user filling out the form, printing it, and then being prompted to save changes.
    The bigger issue is that most of our users expect to take a form hosted on the website, fill it out, and then save a pdf copy of their responses for reference. The reference copy is retaining the interactive fields rather than printing as a static pdf.
    If I could force the action of printing as a pdf (rather than saving as a pdf) on submission I think that would solve the issue. The script for most of the forms in the library is xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0); and I am not aware of a way to force the print to only be to the pdf print driver.

  • Can a change be made to the original Word document without losing form fields in a saved PDF form?

    I have a new fillable form created with Acrobat 9 that has 10 pages of fields on it. I noticed a typo in the original Word doc I created the form from and wondered if there is anyway to make changes in the source document without having to recreate all fields again.
    Thanks!
    Frank

    Yes, just create a new PDF and replace the pages of the old one that has the form fields with the pages from the new: Document > Replace Pages
    Any fields, code, bookmarks, links, etc. will be retained.

  • How to Supply the form field values to a pdf form when loading it

    I am working on a web site project using Asp.net where the user has to fill in a PDF eform in acrobat reader. Then when he clicks on submit it returns to my asp.net app and the PDF form supplies the values back to my asp.net app. So my asp.net app has the values that were filled in the PDF form and can save those values and work with them...
    OK.
    What I need to know is when I am in my asp.net app, and the user wants to go back and reopen the same form, from my asp.net app..... then how do I pass back the values that were saved back to the PDF form??
    I know if I had a way to pass the values to the PDF form in some way then in the Doc.open or doc.load event of the form I could easily write a little javascript to plug in the values in the PDF form fields.
    but how do I pass those values from my asp.net app to my PDF form???
    thanks

    Thanks bcweed for all the info. I fixed my problem, it had something to do with LiveCycle Designer. If I just use Acrobat to add the form fields, then the FDF works fine. As to your situation with the SavToBuf, that happens to be the method that I am using, so I will just post my code here, and maybe you can pick out what is different from yours. The Response.BinaryWrite(FDFin.FDFSaveToBuf)is at the bottom.
    Sql = "SELECT * FROM Invoices" & WHERE
    Set Conn = Server.CreateObject("ADODB.Connection")
    Conn.Open Db_Conn_Str
    Set Rs = Server.CreateObject("ADODB.Recordset")
    Rs.Open Sql, Conn, adOpenStatic, adLockReadOnly, adCmdText
    If Not Rs.EOF Then
    End If
    Set FdfAcX = Server.CreateObject("FdfApp.FdfApp")
    Set outputFDF = FdfAcX.FDFCreate
    'VendorID = VendorName = VendorNum = InvoiceDate = PreparedBy = ""
    Gross = 0
    For I=0 To Rs.RecordCount-1
    If InStr(VendorID,Rs.Fields("VendorID")) = 0 Then
    VendorID = VendorID & Rs.Fields("VendorID") & ", "
    End If
    If InStr(VendorName,Rs.Fields("VendorName")) = 0 Then
    VendorName = VendorName & Rs.Fields("VendorName") & ", "
    End If
    If InStr(InvoiceNum,Rs.Fields("InvoiceNumber")) = 0 Then
    InvoiceNum = InvoiceNum & Rs.Fields("InvoiceNumber") & ", "
    End If
    If InStr(InvoiceDate,Rs.Fields("InvoiceDate")) = 0 Then
    InvoiceDate = InvoiceDate & Rs.Fields("InvoiceDate") & ", "
    End If
    If InStr(PreparedBy,Rs.Fields("PreparedBy")) = 0 Then
    PreparedBy = PreparedBy & Rs.Fields("PreparedBy") & ", "
    End If
    Rs.MoveNext
    Next
    Rs.MoveFirst
    outputFDF.FDFSetValue "VendorID",VendorID,False
    outputFDF.FDFSetValue "VendorName",VendorName,False
    outputFDF.FDFSetValue "InvoiceNum",InvoiceNum,False
    outputFDF.FDFSetValue "InvoiceDate",InvoiceDate,False
    outputFDF.FDFSetValue "PreparedBy",PreparedBy,False
    For I=0 To Rs.RecordCount-1
    outputFDF.FDFSetValue ("Line."&I), Rs.Fields("Amount")&"", False
    outputFDF.FDFSetValue ("Company."&I), Rs.Fields("Company")&"", False
    outputFDF.FDFSetValue ("GL."&I), Rs.Fields("GL")&"", False
    outputFDF.FDFSetValue ("CC."&I), Rs.Fields("CostCenter")&"", False
    outputFDF.FDFSetValue ("DocNum."&I), Rs.Fields("DocNumber")&"", False
    Gross = CCur(Gross) + CCur(Rs.Fields("Amount"))
    Rs.MoveNext
    Next
    outputFDF.FDFSetValue "Gross", Gross, False
    Rs.Close
    Set Rs = Nothing
    Sql = "UPDATE Invoices SET DatePrinted = '" & Now() & "'" & WHERE
    Conn.Execute Sql
    Conn.Close
    Set Conn = Nothing
    outputFDF.FDFSetValue "PrintDate", Date(), False
    outputFDF.FDFSetFile "http://admin/invoices/pdf/InvoiceAuthorization.pdf"
    Response.ContentType = "application/vnd.fdf"
    Response.BinaryWrite outputFDF.FDFSaveToBuf
    outputFDF.FDFClose
    %>

  • Want more robust form fields in InDesign for PDF forms.

    I wish that soon InDesign CS6 Interactive Form Fields will include the COMB field for entering data in various formats such as phone numbers, credit card numbers, using some sort of format like [number of characters] ["(nnn) nnn-nnnn"]. I use comb fields a lot. Likely others do too. I realize that we are at v1.0 in the InDesign Interactive fields, so I hope that the developers will consider this for the next release!
    I long for the power that Acrobat fields have to be implimented in InDesign.

    The powers that be (InDesign product managers, engineers, or other employees) don't frequent this forum. To have you voice heard, file a feature request:
    Adobe - Feature Request/Bug Report Form

  • Highlighted Fields in forms to be switched off when opening a pdf form

    I have created a simple form and understand that when different machines open the forms that the "Highlight Fields" is either on or off depending on how each user has their reader setup. Is there any way that when I create the form and tell reader when it is opened to have the highlight fields switched off?

    Yes, but it's an app-wide setting and it's is considered "rude" behaivour
    to make such changes without at least informing the user of it, or (better
    yet) ask for their permission to do so.

  • How do I reset/clear the Message Field when I create a new message?

    For some reason, when I select a new message - the message field has got a previously sent message in it - every time I have to select all text & then delete the text to type in my new message.
    How do I reset or clear the Text Message field?
    Thanks in advance

    No - It is still doing it 2 months later - I have to delete the message every time I go to send a Text - its frustratingly annoying and I really want it solved

  • Replaced attachment and saved PDF form, after re-opening same PDF form previously attached file are missing

    Hi team,
    Can any one help me................!
    While am trying to replace the attached file in pdf saved , when re-open again file are missing in PDF

    Sorry, I do not understand what you are trying to say; can you rephrase that?  Also, what was attached to what?

  • I opened Adobe Acrobate XI Standard to create a form.  I then selected From Template, which took me to Adobe FormsCentral Online.  However, I think the form is an HTML web form.  All I wanted was a regular PDF form that I could email my co-workers for an

    I opened Adobe Acrobate XI Standard to create a form.  I then selected From Template, which took me to Adobe FormsCentral Online.  However, I think the form is an HTML web form.  All I wanted was a regular PDF form that I could email my co-workers for an internal project we're colletively working on.  Now I see that FormsCentral is going away and I can't get my doc to save as a PDF without an upgrade?  Help

    You should be able to log into the online Formscentral Acrobat XI air app and see your doc there. From there you would need to save it out as a PDF without a submit button to have it continue to work past July. If you don't see your online form(s) please let me know the adobeID you use to log into the service as well as the form name that is missing and I will look into it for you.
    Andrew

  • "Find" button does not clear all the fields properly.

    Hi,
    A JSF jsp Query page is created and a set of components are dragged from the Data Control Palette. They include three inputTexts, two buttons (find, submit). Both of the buttons are dragged from the relationship from the Data Control Palette as well.
    At the first time the "Find" button is clicked, it clears all three inputTexts. The user can enter query and press submit button and go to the result page. Example:
    Zip: 85007
    First Name: Tom
    Last Name: Smith
    But when the user click the "Go back to query page" button on the result page to return to the query page, the "Find" button needs to be clicked 3 times in order to clear all the inputTexts.
    Anybody knows how to fix it? Thank you.
    Annie

    I just tried it with DEPT & EMP from HR. The problem is still there.
    I dragged a master-detail relationship from the data control palette where DEPT is the master and EMP is the detail. "Find" & "Execute" buttons are also dragged from the DepartmentView1 Operations. When I click "Find" button the very first time, it clears all the fields in DEPT (master) and I can put my query there. For example, I put 50 for DepartmentID then hit "Execute". It gives me 45 details. Then I click "Find" again to do another query. Here comes the problem. "50" is still in the DepartmentID field. If I click "Find" again, DepartmentName Shipping, ManagerId 121 and LocationId 1500 will all appear in the master. If I click "Find" button the 3rd time, it clears all the fields in DEPT for me to enter another query.
    I do not think this is the right way for the "find" button to work. Did I do anything wrong? What could be the problem? Please help. Thank you very much.
    Annie

  • Is there a sensible way to import form fields from an old pdf into a new pdf?

    I'm working with Acrobat X Pro on a Windows PC platform.  I've been working with a file that was originally created in CorelDraw X3, in landscape orientation. That document was then saved as a pdf and set up with many form fields (it's an order form). The document needed to be updated with minor changes made in the Corel file. I resaved as a pdf and now want to transfer the existing form fields from the old document into the newly revised one. I've tried copy/paste, but have to do small sections at a time because the program doesn't let me bring in all of the fields at the same time. I then tried Document > Replace page, which I've seen described in other forum posts; but when I do that, the entire set of fields comes in rotated at 90 degrees counterclockwise. I did read that if the original document was created in a different orientation, that could affect how the fields paste in, but that is not the case here. The original file, and all successive pdf files all have been the same orientation. I'm boggled and think that there has to be an easier way than copying fields, a section at a time, and resizing them all over again.
    This older post is pretty similar to what I am trying to do, but it seems I'm getting a different end result. Any suggestions?
    Create fillable form with changing source document

    I am using Acrobat Pro 10. I have the same problem and finally after numerous different attempts of solving based on all the suggestions, I resolved my problem by Printing to PDF via the print dialog in Word. When I pasted the fields that were previously rotating onto the new "printed" PDf, the fields retained their orientation as desired.
    To clarify, I am using Word 2007, Acrobat Pro 10, the document is landscape, both the original (with fields) PDF and all attempted new PDF's were of the diemnsions 11 x 8.5. The only noticeable difference in the PDF properties for the PDF's were Tagged PDF and Fast Web View. The original PDF (with fields) was No in both cases and all attempts other than the Print to PDF were Yes, meaning that the Print to PDF was No. I am not sure if this made the Print to PDF work or not as I have already spent too much time trying to resolves this issue. Hope this helps.

  • Highlight Fields as default for PDF Forms

    Hello all,
         I've recently designed a PDF form with some required fields, which get marked in red as soon as you open the form. However, some Acrobat Reader users have to click first on "highlight fields" in order to see the required fields. Is there a way to set "highlight fields" as a default for this form?
    Cheers,
    David

    The suggested code didn't work for me with Adobe Reader 8.0.  However, since I am a novice at this, I may not be adding the code correctly -- can you please tell me if this JavaScript client code for layout:ready is correct or not?  I added the code in red.  (I am using LiveCycle Designer ES Version 8.2.1.4029.1.523496).  It seems to be in the right place because if I alter the code to unconditionally set app.runtimeHighlight to false, then when I open up the form with Reader 9.0, the highlighted fields are off.
    form1.#pageSet[0].Page1.CurrentPage::ready:layout - (JavaScript, client)
    this.rawValue
    =xfa.layout.page(this);
    // Turn on highlighted fields
    if 
    (!app.runtimeHighlight){
    app.runtimeHighlight
    = true;}
    form1.#pageSet[0].Page1.PageCount::ready:layout - (JavaScript, client)
    this.rawValue
    = xfa.layout.pageCount();
    // Turn on highlighted fields
    if 
    (!app.runtimeHighlight){
    app.runtimeHighlight
    = true;}

  • When creating a fillable form fields from an existing pdf file, how do you set or allow end user to set the font size in the fields?

    I successfully created a form filled pdf using an existing pdf document.  However, the font size is too large to allow end user to type in information in the form box.  Is there a way to 1)globally set all  of the form fields when generated to a much smaller font size &/or 2) allow end user to change the font size if needed to put all information in one box without font being so large?

    Hi DenisonDoc,
    There is no option right now to set properties globally primarily for Text fields. You may make sure fields doesn't contain anything.
    Select all the text filed from the form and right click any of the selected field make sure all of them are selected choose properties --> Appearance there you can choose Font Size and Font type.
    - End users cant change size and type of font. It is up to designer.
    Regards,
    Ajlan Huda.

  • Form Fields Will Not Overlay PDF

    When I attempt to create fillable form fields on an exisiting pdf (which was converted from excel) it pulls up in LiveCycle Designer with the original pdf on page 1, and a second page of what appears to be a pretty accurate layout of fillable forms.  However, I cannot get these fields moved to page 1 no matter what I do.  Please help.  I am not sure if this is a setting or a problem with my adobe or what.
    Thankyou.

    Case number is
    #0183632756
    Sill no response from Adobe - going to be going on a week with no response here shortly.
    An update to the issue.  I went ahead and downloaded some forms from IRS.gov and the issue persists no matter what version of reader we use.  It is looking like we have a bug with Reader that conflicts with specific software.  I am currently compiling a list of PC's that this form does and does not work on and we'll see what common threads I can find.
    @Nikhil.Gupta, I have done what you suggest on all affected and non-infected PC's with identical results.  I have also tried reader 9.5 with the same results. 

  • Auto fill same fields in multiple different pdf forms?

    I wish to enter information such as project name, company name, date, etc. into a single data sheet.  Then I need to autofill the same two or three fields across multiple separate pdf form files.  In this case I have approximately separate files to autofill.  The forms are all different however, they have the same two or three fields.  Any ideas?
    I have been searching the internet for ideas or methods and haven't found a single solution yet.
    Thanks.

    I think this is what you're looking for.
    http://blogs.adobe.com/formfeed/2010/07/shared_data_in_packages_part_2.html

Maybe you are looking for