Submitted PDF form data are empty

I created a simple PDF form using Acrobat X Pro that containing one textbox ("txtName") and one button ("btnSubmit"). The button's action is set to "Submit a form" and the URL is set to an asp.net generic handler ("PdfFormHandler.ashx").
When I open the PDF in browser and fill in the textbox and click on submit button, the form submitted. But on the server side, "txtName" is always empty. There are no errors but just missing the submitted data. the server side code is:
public class PdfFormHandler : IHttpHandler
    public void ProcessRequest(HttpContext context)
        if (context.Request.RequestType == "POST")
            var name = context.Request.Form["txtName"];
            context.Response.ContentType = "text/plain";
            context.Response.Write("Hello " + name);
    public bool IsReusable
        get
            return false;
I should see "Hello " and then a name. But since it's not able to retrieve "txtName", it only prints "Hello".
i found what the problem is and i posted the answer here. http://stackoverflow.com/questions/10885969/adobe-pdf-form-submitted-but-request-form-coll ection-is-empty

You could try first flattenening the fields. This converts the field appearances to regular page contents. You can do this with JavaScript, PDF Optimizer, or a Preflight fixup.

Similar Messages

  • Submitting PDF form data

    In the following discussion from last year: http://forums.adobe.com/thread/988633?tstart=0
    it's stated that the only type of submit form action that's supported is where the entire PDF is sent via email. This isn't really a submit though, it's just initiating an email and attaching the form. What I would like is to be able to set up a form to submit to a web server, either the entire PDF or just the form data. This is in fact allowed for PDF forms (Acroforms) that have been distributed through the FormsCentral service (which was added after that discussion linked to above), and when using the various desktop versions of course. The button action for a FormsCentral PDF form uses the submitForm JavaScript method and submits the form data as "HTML", but when I try to do the same thing with a form I create, it simply doesn't work. So either there's some proprietary magic that's enabled for use only with FormsCentral distributed forms, or everything I've tried is somehow wrong. Can anyone from the Reader development team or anyone else provide some clues?
    I noticed that when I replaced the URL in the submitForm statement in a FormsCentral-enabled PDF form, the form still submitted to FormsCentral, probably due to the metadata that's also set when a PDF is distributed via FormsCentral, so there is some sort of magic going on...
    Thanks!

    If the ability to submit is limited to FormsCentral-enabled forms, it would be interesting to know why such a restriction is in place. Reader for Win/Mac has been able to submit form data (as "HTML", FDF and later XFDF and PDF) since forms were first introduced with version 3. What is the justification for this restriction on iOS?

  • How to avoid submitting a page when tabular form rows are empty

    Hi,
    I have a master detail form in my application. There are 2 tables that are used Table A and Table B. Table A contains Ticket number and Table B refers to Table A through a foriegn key and Table B have columns like Date,Name, Age, ticket_id (that refers to the ticket_number of the Table A).
    This is how the application works:
    In a page there is a field for Ticket Number, once the user enters the Ticket Number and click Add Details, a tabular Form with 5 empty field appears... (Done through Page Process->Data Manipilation->Add Rows)
    This form contains fields Date, Name and Age. Once the user fills in all the details and click Submit button, the page is submitted. Whatever values that was entered is saved in Table B. Page Sucess message appears. This works fine.
    But once the Ticket Number is entered and Add Details is clicked, and without entering the values in the Tabular Form, if Submit button is clicked, there is no error showing up neither I see Page success message. But this should not be allowed. There should be some error showing up...
    Tabular Form Validations works only when user enters some values in the Tabular Form and click Submit. For the above scenario, where the form is untouched the validation doesnt work.
    How can I get this done? Any ideas?

    Hello Suzi,
    >> if (document.wwv_flow==null)
    The document.wwv_flow is an object representing the current form that was just rendered on your screen. As such, it can never be null.
    >> How to avoid submitting a page when tabular form rows are empty
    The correct way, especially for versions prior to APEX 4.0 is to use JavaScript, but for that, you need to know and understand how APEX generates your tabular form, HTML wise.
    To be very brief, APEX attached a unique ID to every updatable cell in the tabular form, using a certain pattern – each updatable column is getting a unique name (e.g. ‘f01’,’f02’ etc.) and the ID of a cell is a combination of this name with the serial row number the cell is on. For example, a cell on the third row in an updatable column called ‘f04’ will be given an ID of f04_0003. (More detailed explanation, with an example, can be found in my book).
    What you should do is to check these cells according to your validation policy (e.g. is all five row must be filled, is all the columns in a specific row must be filled, etc.).
    Regards,
    Arie.
    ♦ Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    ♦ Author of Oracle Application Express 3.2 – The Essentials and More

  • PDF form data not visible when opened in Illustrator CS5

    I've been searching the forums but have been unable to find an answer to my specific problem.
    I've created a form using Adobe Acrobat Pro. The PDF form fields are then populated with data via Netsuite. When I open the PDF (with data) in Acrobat all of the information shows up, however when I open the PDF in Illustrator CS5 the field data is not visible. Is there a way to force the data to be visible when opened in Illustrator?
    Thanks in advance for any help!

    You could try first flattenening the fields. This converts the field appearances to regular page contents. You can do this with JavaScript, PDF Optimizer, or a Preflight fixup.

  • Submitted PDF form is not delivering to my Domain email account

    Submitted PDF form is not delivering to my Domain email account

    What exactly is not working ? As you have mentioned form submission notification is received in your email account so form process is working I believe but you want the notifications to go to another email account I think.
    Have you added the email address in "Email to" field in form options ? If yes and then also you are not receiving the form , then please provide me the site url and post a screenshot or form with option box open.
    Thanks,
    Sanjit

  • I am creating a form, it shows 1 page, but when I save it as a PDF Form there are 2 pages, 1 is blank. How do I get rid of the blank page in the form?

    I am creating a form, it shows 1 page, but when I save it as a PDF Form there are 2 pages, 1 is blank. How do I get rid of the blank page in the form?

    Hi,
    You may open the original form in FormsCentral and toggle to “Page View” at the lower right corner. Adjust the page content to make sure no page breaks in this view.
    Thanks,
    Wenlan

  • Best web browser for submitting PDF forms

    Is there a preferred web browser for submitting PDF forms, or can recipients submit the form via any of the common browers like Explorer, Firefox, Chrome, etc.?

    We support all of the major browsers: Internet Explorer, Firefox and Chrome.
    Thanks
    Roman

  • Submit pdf form data to sql database

    Where I can find detailed information on the process of sending data from pdf form stored on the website to the sql database stored on web server ?? Where I can find some samples I could use to build my form and related script(s).
    Thanks for advice.
    Tony

    Hi Paul,
    Thank you very much for your quick response. I can not retrieve your
    attachments, so please send them by email. Thank you.
    What does it mean that DSN has to be set up on each machine which will run
    the form ??? Does it mean for each person who will use the form ?? or
    rather once on the server where the form is hosted ??? It will be a bit
    difficult to use if it will have to be installed on each user computers as
    some users may not be happy to do it. If this is the case do you have any
    solution you would recommend which will collect the data from the form
    without asking users to do anything special on their computers ????
    Regards,
    Tony Pluta
    Graphics Designer
    Broadmeadow Road
    Broadmeadow NSW 2292
    Australia
    Direct: +61 2 9492 1277
    Facsimile: +61 2 9462 1383
    Mobile: +61 403 399 167
    [email protected]
    www.unitedgroupltd.com
    pguerett <[email protected]>
    22/04/2009 10:31 PM
    Please respond to
    [email protected]
    To
    Tony Pluta <[email protected]>
    cc
    Subject
    submit pdf form data to sql database
    If you want the form to contact the DB directly you will have to set up a
    DSN on each of the machines that will run the form. Note that this wil
    only work on Windows machines. Also the form must be launched for the
    script to run (you mentioned the PDF was stored on the web server). I have
    some samples that show how to deal with a DB but the attachments do not
    seem to be working correctly on the forum yet. If you cannot retrieve them
    post your email and I will email them to you directly.
    Paul

  • Submitting Pdf form fields to a MySQL database via PhP

    Hi there,
    I have recently created a Pdf in Adobe LiveCycle which looks great, and I have added a submit button which is set up to send all the form data in HTML to a PhP file on the server side. The PhP file then collects the form data and inserts it into my MySQL database.
    When I run this form from Adobe reader or Professional it works great and the new record is inserted in the database. However I am trying to embed the form into a HTML page, which again looks fine, and all other buttons i.e. Save As, Print work fine.
    The submit button however is not working properly now. It inserts a new record into my database, but the fields are blank as if the form data has not been sent or received?
    Can you possibly advise me where i'm going wrong.
    Much appreciated
    Cane

    Hi Cane,
    I'm relatively new to creating Adobe Forms but I'm looking to do exactly what you have set up, submitting the results to php which sends the results to a database. I don't like the responses being sent to a pdf response file then every so often you have to export to csv then import the results into a database....too tedious. Can you perhaps provide the code that goes behind the submit button and maybe the code that you use on the php/server side? Again, relatively new to this and don't know where to begin but if I can look at the code behind this it would make things a lot easier.
    Thanks,
    Ed

  • Submitting PDF Form to SharePoint 2010 Library

    I've inherited a simple PDF form created with LiveCycle ES2. We'd like to be able to let users Submit the result of the form in a PDF format, to a SharePoint 2010 Library using a Submit button. I've added a button and configured the Control Type to Submit. I've added a SharePoint library to the Submit to URL: field and changed to Submit to PDF. Now when I click the button, it opens the SharePoint library but nothing is there. I'm sure there's more I need to do to get this working. Do I need to install the server-side stuff for LiveCycle on the SharePoint server?

    This is not striclty my area of expertise so I don't want to give you a bum steer - at best my response is vague but it may give you a few clues of where to start looking. I'm not too sure how you might have confgured this but your PDF form needs somewhere to send the data and then receive and store it - that's not a SharePoint list or document library (I seem to recall reading somewhere that you can do clever stuff with PDF and SharePoint but I don't think it works out of the box like you're describing here - that info basically alluded to using PDF and SharePoint together [like marketing statements] but didn't go into the hows). I suspect that submitting a PDF form may result in an XML data stream but don't quote me on that either. Alternatively if Acrobat is going to collate results then I think the form being submitted may need to end up in the same locaiton as the "master" PDF form but again I'm guessing a bit here too. For all intents the "master" pdf form may need to reside in SharePoint (and as a result it is addressable on a URL or as a file via WebDAV) in which case it will (or ought to) function like any other PDF form where you can collate results to a spreadsheet. If thats all it can do then using SharePoint seems moot. I think Google is your friend here :-)

  • Using PHP to process submitted PDF Form and Upload FDF to Server

    Hi All,
    I have a PDF form online (created in Acrobat 9.0 Pro, NOT LiveCycle Designer!) that, once a user has filled it out and clicks the submit button, I want two things to happen:
    1) I want the data from the form to be submitted to a custom PHP script, which I can do several different things with (store the data in a MySQL database, for example).
    2) I would also like to upload/store/save (not sure of the proper vernacular) the filled out form (FDF file) to the web server.
    Now what I need from you lovely people, either directly, or point me to where I can find the following:
    1) How/What options do I choose for the Submit button in Acrobat 9.0 Pro when I create the PDF?
    2) What/Where can I find a PHP code snippet to get the data from fields in the submitted form?
    3) I know you can set up an Acrobat form to e-mail a copy of the FDF file to a specified e-mail address. Instead of emailing that FDF file, I want to store it directly to a folder on my web server. However, just setting the URL in the submit button to a folder on my web server doesn't seem to do the trick. So, I guess what I need is to somehow reference the FDF file with my custom PHP script... something like $_POST["fdffile"] ???? Please if anyone knows how to do this, please let me know! Because, if I can reference the FDF file, I can then use PHP's built in FTP functions to upload it to a specific folder on my web server.
    Thanks for any input!!!

    HI All,
    can someone please quide me how I can make this code to work for me?
    Where and what folder I have to put this PHP script?
    What my http will be?( I will use localhost)
    What the name of my PDF file(create by LiveCycle Designer)
    What the name of the file I will receive and where(folder) will be send it via the server?
    I see these name below in the PHP script but I can not make out what....
    configuration.php
    administrator/xml
    administrator/pdf
    THANK you

  • Error message when submitting PDF form

    I am very new at using Adobe Acrobat so I don't really know what I am doing. I created a PDF form for my site. I set it up to submit to an email. When I tested the form and hit the submit button I got this error "An error occurred while creating the file 'C:\WINDOWS\FORMS\FRMCACHE.DAT' in the form directory." Any help on what I am doing wrong would be greatly appreciated!
    Thanks,
    Andrea

    To submit by e-mail, the client computer has to have MAPI active for the e-mail clients. Also, you do not want folks to submit a full PDF, but just the FDF or XML form results. Those can be opened in the form on your machine. One of these issues are likely related to your problem.
    Be aware that you likely designed the form in Designer, not Acrobat. There are form tools in Acrobat, but many folks just hit the Forms menu and then find themselves taken to Designer. Once in Designer, you can no longer do editing in Acrobat.

  • Submit PDF form data IMS database.

    Hello
    I have developed a pdf form using livecycle designer and it has a submit button in it. The form is published to our organization website. What we would like to do is, when the user opens and fills up the pdf form either on web browser / or after downloading to their desktop, users should be able to post the data in the form directly into our IMS database. Our users are not connected to our organization network but just to the internet.
    I understand that we need to use a Submit button with 'Submit As' property set to XML. IMS connect is an IBM interface that would read this xml and pass the data to the database. But, what I would like to know is the architecture and how the components communicate here. i.e. for our design document.
    I am assuming that we would need to lay out these components on the diagram but not very sure of the order in which the data is flowing from client to the database.
    1. Web browser
    2. Internet Connection
    3. Webserver (this is where the org. website is and the form is located on the website)
    4. LiveCycle ES sitting on an application server?
    5. Database tier.
    Appreciate if anyone could tell me exactly the steps and the data flow.

    You cannot use a submit button to invoke a web service. You woudl create your web service to recieve a single parameter (the XML that represents the data on your form). Then create a hidden field (to hold the data) and bind the input parameter to that field. Now using a regular button, add code that will take the data that is in the data dom and dump it into your hidden field:
    HiddenFieldName.rawValue = xfa.datasets.data.saveXML("pretty")
    Make sure the your hidden field is set for multiline. Now in the next line of code we need to invoke the web service. You can use the invokeBtn supplied by the DataConenction wizard (dropped on your form of course). You can use the command:
    invokeBtn.execEvent("click");
    This will send the data in the hidden field to the web service. You can code your web service to return a string that indicates that the data was recieved. You can bind that output parameter to another hidden field. Once the web service executes then that field will hold the message string. Now you can put up a message box to the user:
    app.alert(hiddenfieldname.rawValue);
    When I talk about hidden fields I mean to make the presence invisible not hidden.
    Make sense?

  • Email or store submitted PDF form using PHP

    I'm using LiveCycle Designer 8.0. I've searched a lot but haven't seen any answers or solutions to submitting the filled out pdf form online and the pdf sending to an email without it having to use an email client on the users computer.
    I'd prefer to use php and either save to the server or directly send the pdf as an attachment using the php mail() function. Any language would be fine, I'm just experienced with php.
    If anyone would have a solution to this, I am fully capable of editing scripting to send the correct fields for my particular form. I've just not been able to find a way to store and attach in pdf format. Since the LiveCycle has the built-in function to open your default mail client, attach the pdf, and then send - isn't there some way that function could be edited to use the servers php mail feature instead?
    Any help would be greatly appreciated. The reason this has become so important is that the new systems at some doctor's offices are requiring pdf's sent in advance that save in a program that allows the use of digital pen signing (like when you sign for a fedex package) of the documents once the patient arrives. And unfortunately, still many of the patients are not going to be avid pc users and will not have an email client program like outlook set up.
    Thanks much,
    Heather

    Thank you for your answer. I completely understand how to do all the things you mention, have been able to do them - where I can't seem to understand is posting to the web server. Maybe it's just simple and I'm overthinking it. When I set a url to post to, I've been trying to use a php script, but can't get the call right to save or grab the pdf.
    Could you help me with that part? Are you meaning it that way - to post it to a script or am I over-doing it and there's a simpler way?
    I appreciate your help very much.
    Heather

  • PC users can't save PDF form data from form created on Mac

    I'm trying to create a PDF form for a client that will be accessing the form on a PC. However, when the client opens the form, a message appears saying that any data filled in the form cannot be saved and the document must be printed. If the client tries to "Save As" a message appears saying the form will be saved without the data. This defeats the whole purpose of using PDF forms.
    What can I do to allow my client to save data in the form? When I check the permissions on my end, there is no security and no restrictions.
    Developer environment:
    Acrobat 9 Pro
    OSX Snow Leopard
    Client environment:
    Windows 7
    Acrobat Pro X

    Thanks for the quick response, Karl.
    The client downloaded the trial version of Pro X, to verify that the form works before buying. Would the trial version impose restrictions?
    The client does not want to store data on a server. He wants the form to function as a template that he can save-as to customize. The completed forms will be shown on the computer as a part of a presentation, sometimes without Internet access.
    I tried using the Advanced > Extend Form Features options to enable to ability to save form data, but when I tested the PDF on my PC (Vista, latest version of Reader) I got an error message along the lines of "this document has been modified from previous version, please get a copy of the original" and all form fields are gone.
    I'm currently downloading the trial of Pro X so I can test the PDF.
    I am also using a Javascript to allow the client to place photos in the document. This is achieved using a button with a Javascript attached to it: event.target.buttonImportIcon();
    This works correctly in my environment, but could it be screwing up the file as it's opened on a PC?

Maybe you are looking for

  • Won't Display in Landscape view

    My IPhone 3GS with 4.1 is doesn't flip to the landscape view in any program. ***? Is there a settings in settings that I need to turn on.

  • Partial Payment- need clarification on 2 scenarios

    Hello SAP Gurus', I need some help.  If I check the Partial Payment in the Control Parameters node in Bank transactions, what does it mean?  I thought it meant that if a payment came in and referenced that invoice, it would clear that invoice leaving

  • Do i need to reconfigure OEM Database Control when change ip address?

    Hi all. Do i need to reconfigure OEM Database Control after a change of ip address? I mean, i have an OEL5 box with 10g Rel2. I have configure the server with a static ip address. This server will be sent to another location and it's possible the ip

  • Restore X201 from Rescue and Recovery file says it will take 6 days complete

    Hi, I had a malware issue that messed up my firewall (McAfee) and so I decided to restore from a RnR file.  The file is located on my home network drive so I connnected via ethernet cable and initiated the full restore of the file.  I'm running an X2

  • OAUG Enhancement Request System (ERS) Pilot Program

    OAUG Enhancement Request System (ERS) Pilot Program The OAUG Board of Directors and Oracle® Corporation have previously announced the Pilot Program for the OAUG Enhancement Request System (ERS). This system has been collaboratively designed to achiev