Creating survery form with xml

Hi,
I have urgent requirement to creat survey questionaire form where user can download survey form and fill it offline and then post it through mail to particular id where all info related to him will be stored in DB.
I was looking to xml and java for this where survey form comes as xml file and user fills it and then mail it and at other end java can read it and stores info in DB .
Can anyone suggest how it can be done or has more idea.
Thanks
Rakesh

Rakesh,
If it is an absoloute requirement that the survey be sent through email, an xml file would provide a standard format for the survey data and make it easy to process.
On the other hand, if you are sending the survey to a servlet (recommended) then perhaps parameters are the way to go (depending on how many survey questions there are and what you want to do with the data after recieving it).
If there are a lot of questions then it can get quite fiddly to process all the parameters (you'd typically send one per question). This also ties the recieving servlet to a particular data format (i.e. if you want to add or remove a question, you need to recompile the servlet).
I'd suggest wrapping the survey data in XML using javascript like I mentioned before and send that XML string as a single parameter. That way you can have your servlet parse the string and then pass on a Document object to another class for processing. If you decide you want to do something different with this data then you can just change this class.
Whether it's easier or not to process/produce XML vs HTML parameters really depends on how complex your XML structure is and how many parameters you need. Overall, XML gives you greater flexibility but you will have to write the javascript for generating it. Using straight parameters is the quicker way.
If you use XML, the important thing is to not let the user directly edit the XML file.
Hope that helps.

Similar Messages

  • Filling PDF Form with XML data file

    Hello everybody.
    I need help.
    I created a form with LiveCycle Designer. I filled it and generated a XML data files. Now, I would like to fill the same blank PDF form with this XML data file.
    I know that I can do it with Adobe 8.0 but I must do it in an C# / .NET application that I have to create.
    (Forms I'm creating are not for me, I create the forms. Client uses them form but he don't have Adobe Acrobat 8.0, so he can't realise the automatic PDF filling with Adobe Acrobat 8.0)
    So I am looking for help with ".NET" "COM" or other library to help me to do it. If someone has other idea just give it.
    Thanks for your reply
    Jean Pierre (sorry for my bad English)

    Hello Mike
    Thank's for your reply. I used XPAAJ and it works very well but my company his develloping software with C# langage.
    I tried to convert XPPAJ to C#, I did it with the Java Langage Conversion Assistant but "Adobe Library" included in jar files cannot be translated to C#/.NET library. So, I can't use it.
    I found some C#/.NET API on the NET but they are very expensive and my company don't want to pay. They want me to create my own solution with library given by Adobe when you buy Adobe 8. So I am looking for this library.
    Is there an Adobe LiveCycle Designer SDK to help me.
    Thank you in advance for your reply
    Jean Pierre (student developing with LiveCycle Designer)

  • Merge LiveCycle Form with XML using JAVA

    Hello.
    I am trying to find out how to merge non-interactive form with XML (using JAVA) so the users can see the final output form with the data filled in.
    What are my choices..?
    So far, I have created the interactive forms as template using LiveCycle 8 and wrote ASP.NET code to extract data and store it in SQL database when the user fill out and submit the form.
    It works great but another agency wants to access the form as well.
    They told us that they will create the XML themselves from the database, so they just need to combine the form with XML to display it (non-interactive form).
    They want to use JAVA but I am not sure how to do that...
    Any suggestion?

    Assuming that you start with XML in an org.w3c.dom.Document that stores the XML data. Before you can merge it into a form, you have to convert it to a com.adobe.idp.Document object. TO convert a org.w3c.dom.Document to a com.adobe.idp.Document object -- use the following Java code:
    private Document convertDataSource(org.w3c.dom.Document myDOM)
    byte[] mybytes = null;
    try
    //Create a Java Transformer object
    TransformerFactory transFact = TransformerFactory.newInstance();
    Transformer transForm = transFact.newTransformer();
    //Create a Java ByteArrayOutputStream object
    ByteArrayOutputStream myOutStream = new ByteArrayOutputStream();
    //Create a Java Source object
    javax.xml.transform.dom.DOMSource myInput = new DOMSource(myDOM);
    //Create a Java Result object
    javax.xml.transform.stream.StreamResult myOutput = new StreamResult(myOutStream);
    //Populate the Java ByteArrayOutputStream object
    transForm.transform(myInput,myOutput);
    // Get the size of the ByteArrayOutputStream buffer
    int myByteSize = myOutStream.size();
    //Allocate myByteSize to the byte array
    mybytes = new byte[myByteSize];
    //Copy the content to the byte array
    mybytes = myOutStream.toByteArray();
    catch (Exception e) {
    System.out.println("The following exception occurred: "+e.getMessage());
    //Create a com.adobe.idp.Document object and copy the
    //contents of the byte array
    Document myDocument = new Document(mybytes);
    return myDocument;
    THen you can merge myDocument into the Form using renderPDFFOrm:
    FormsResult formOut = formsClient.renderPDFForm(
    formName, //formQuery
    myDocument, //inDataDoc
    pdfFormRenderSpec, //PDFFormRenderSpec
    uriValues, //urlSpec
    fileAttachments //attachments
    Hope this helps!

  • I created a form with Single Choice fields, 4 days with times listed. But, I want the user to only be able to choose one time, and the time chosen to be unavailable for other users. How do I do this?

    I created a form with Single Choice fields, 4 days with times listed. But, I want the user to only be able to choose one time, and the time chosen to be unavailable for other users. How do I do this? I have 4 blocks of Single Choice fields in order for the summary page to give me each day in the final report. But, I need the user to be able to make a selection of any day and time and that apointment to no longer be available to future users when they log in. Plus, when the user clicks on the time, they are unable to change their mind and choose another time. Here's the link if you want to see what I'm talking about: 2015-2016 Workload Apportionment Review

    I'm afraid not.    It's not rocket science but you need to do some coding. 
    You'll need to find a script (php) and save it to your local site folder.  Then reference the script in your form's action attribute like so.
         <form action="path/form-to-email-script.php" >
    The input fields in your HTML form need to exactly match the script variables. 
    I'm  assuming you're hosted on a Linux server which uses PHP code.  Linux servers are also case sensitive, so upper case names are not the same as lower case names.  It's usually best to use all lower case names in your form and script to avoid confusion.
    Related Links:
    Formm@ailer PHP from DB Masters
    http://dbmasters.net/index.php?id=4
    Tectite
    http://www.tectite.com/formmailpage.php
    If this is all a bit beyond your skill set, look at:
    Wufoo.com (on-line form service)
    http://wufoo.com/
    Nancy O.

  • Is it possible to create a form with multiple form fields on a single line?

    Is it possible to create a form with multiple form fields on a single line?  I can't find anything in the documentation or a template that does this.
    I am trying to create a "documents received" checklist with a check box on the left margin, a date-received field to the right of the check box and and a description of the document (Formatted Text) on the far right.
    In the past I have entered the Fixed Text with a word processor, published it to a PDF file, then added the check box and date fields with the Acrobat Forms editor.  I would prefer to use FormsCentral if it is possible.

    We now support multiple fields on one line. This post provides a brief overview.
    Give it a try and send us your feedback.
    Sorry it took so long.
    Randy

  • Creating a Form with Report based on View

    Hi All,
    I wanted to create a form with report based on two tables so:
    1. I created a view (called COMBO) based on two tables
    2. I then created a form with report based on the view
    Everything seemed fine thus far until I tried to edit existing records - I got the error:
    ORA-20505: Error in DML: p_rowid=2002082600001172, p_alt_rowid=REPATRIATION_ID, p_rowid2=, p_alt_rowid2=. ORA-01776: cannot modify more than one base table through a join view
    Unable to process row of table COMBO.NB: REPATRIATION_ID is the primary key of the Repatriation table. The other table is Applicant.
    & when I tried to create a new record - I got the error:
    ORA-01776: cannot modify more than one base table through a join view
    Unable to process row of table COMBO.Someone please enlighten me!
    Kind Regards
    Kamo
    Edited by: Kamo on 2009/03/12 2:33 AM

    Hello Kamo,
    You need to create an 'instead of' (update/insert/delete) trigger on your view to process the inserts etc into the 'real' tables.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Troubles creating a form with Acrobat

    I have created a form with Acrobat 9 Pro. However, when it is brought up with Acrobat Reader, the following message appears:
    Sending data files by email: Please note, this form contains an email submit button. Clicking this button will email a data file... However, the form itself will not be sent. Remember you cannot save a complete file of this form with Adobe Reader 9.
    When the submit button is clicked, the following message is posted on a popup window.
    Operation not permitted.
    Here's the link to a form I am trying to get to work. It works fine if I use the Pro version, but the Reader version doesn't want to allow the form to be sent. http://www.drugfreedekalbcounty.info/pdf/interventionscholarshipform.pdf
    Any help would be appreciated. Thanks.

    It may have been improved with AA9, but at least up through AA8, Acrobat required the use of MAPI on the machine to deal with e-mail. If that has changed, then the other recommendation to use extended rights might meet your need. There is a 500 use limitation for the extended rights (more requires negotiation with Adobe). This may be a limitation that changed with AA9 Pro Extended.
    The rights are not needed if the data file is sent and not the whole PDF. There is no need for the whole PDF since the data file can be opened in the original form document - giving the same result. Your observation that it works in AA9 for e-mail is making the assumption that everyone uses AA9. That is a dangerous assumption if you are developing a general use form. You should assume folks have back to AA7, or even AA5 (like I have on this machine). There are still a few that check in here on occasions with AA4. I have not seen an AA3 question for several years. Thus backward compatibility may be an issue, depending on your client base.
    The cleanest way to work with forms is to submit to a web script. Then there is no question about the end result. The use of web scripts is even recommended for online html forms for much the same reasons. I was giving a heads up so that you have considered possible users that do not have the newest and best, assuming that the latter resolves the e-mail issue.

  • How to create a form with two column headings

    I have a business request to create a data form to handle multi year data by month. This will require creating a form with two column headings - with the first row be Year and second row be month, and data entry will begin in the third row and down.
    I can do multiple row headings in the layout design, but somehow can not get it to work for multiple column headings.
    Thanks in advance

    If you're in the "Layout" tab, simply pull the "Years" dimension and the "Period" dimension into the Column section. Planning can be a little picky about where you "drop" the dimension as you're dragging and dropping it. Drop it in the cell directly under the letter name of the column. Other than that, there's not much to it.
    Hopefully this helped,
    - Jake

  • How to create a form with DW CS3?

    Hi all,
    I want to create a form to gather email, address information on a website. Question, can I do that using
    DW CS3? and what else do I need in order to do that? I know there is more to it than just creating a form
    with fields, that there is programing behind it. I use 1 and 1.com for my hosting.
    Any help would be greatly appreciated.

    You'll need a form to email processing script.  Ask your host if they provide one you can use.  If not and your server supports PHP, I highly recommend this one from DB Masters.  It is safe, secure and with good spam prevention built in.
    http://dbmasters.net/index.php?id=4
    Other options:
    Forms to Go from BeboSoft
    Wufoo
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Can we create a form with dreamweaver for muse

    Hello,
    I need help because please because I want to create a form with choices and I can't do it with muse. I would like to know if someone can tell me if i can do it with dreamweaver and insert into muse after.
    Thank you for your help.

    Hi creatike,
    Why not use Adobe muse itself for forms?
    Configuring forms (and more) in Adobe Muse
    Thanks,
    Preran

  • Update a system form with XML: empty screen when this is a target document.

    Hi,
    It is possible to update a system form with an xml file.
    In the UI_Application.LoadBatchActions(xmlDoc). In the xmldocuemnt I update a system form by adding controls on it. This all works fine, except one (big) problem.
    Assume that I Alter the 'Good Receipt PO'.
    This document can be the target document of a Purchase order document. When you open a PO and click the icon on the toolbar for going to the target document, you see the target document filled in, in OK (view) mode.
    When you alter the 'Goods Receipt PO' form with XML you get an empty goods receipt form, in Add mode.
    Is this a known problem, how can I solve it?
    Thanks in advance
    Eddy

    Hi Florian,
    The XML looks like:
    <?xml version="1.0" encoding="UTF-16"?>
    <Application>
       <forms>
          <action type="update">
             <form AutoManaged="1" BorderStyle="0" FormType="143" ObjectType="20" SupportedModes="15" appformnumber="143" client_height="424" client_width="570" color="0" default_button="1" height="458" left="207" mode="3" pane="1" title="Goederenontvangst (bestelling)" top="23" type="0" uid="F_233" visible="1" width="578">
                <items>
                   <action type="add">
                      <item AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" enabled="1" font_size="0" forecolor="-1" from_pane="0" height="19" left="434" linkto="" right_just="0" supp_zeros="0" tab_order="830" text_style="0" to_pane="0" top="398" type="4" uid="100001" visible="1" width="85">
                         <AutoManagedAttribute>
                            <Attribute description="editable" id="2" modeAdd="1"/>
                         </AutoManagedAttribute>
                         <specific caption="Container"/>
                      </item>
                   </action>
                   <action type="update">
                      <item AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" enabled="1" font_size="0" forecolor="-1" from_pane="0" height="19" left="315" linkto="2" right_just="0" supp_zeros="0" tab_order="1160" text_style="0" to_pane="0" top="398" type="4" uid="68" visible="1" width="114">
                         <AutoManagedAttribute>
                            <Attribute description="editable" id="2" modeAdd="1"/>
                         </AutoManagedAttribute>
                         <specific caption="Voorfactuur"/>
                      </item>
                   </action>
                </items>
             </form>
          </action>
       </forms>
    </Application>
    Thank you very much for trying this.
    Eddy

  • I'VE CREATED A FORM WITH IMAGES. WHEN I OPEN THE FILE IN ACROBAT READER, THE IMAGES ARE BALCK BOXES!

    I'VE CREATED A FORM WITH IMAGES. WHEN I OPEN THE FILE IN ACROBAT READER THE IMAGES ARE BLACK BOXES.
    THE FORM HAs (extend features to acrobat reader). THE FORM WAS DISTRIBUTED.
    NON OF MY EMPOYEES CAN SEE THE IMAGES. WHAT'S WRONG? CAN YOU HELP?

    However, the view large images is an issue for a form that is being distributed. Either a note needs to be added to the PDF to tell how to enable the view or the images need to be changed so that the enabling is not needed.

  • I want to create a form with a manager completing one section and a staff member another. Both sections protected by different passwords.

    I want to create a form with a manager completing one section and a staff member another. Neither should be able to edit the others. Can different sections be password protected by different passwords? I'm thinking there might be an "official use only" function.

    You can use 2 forms in one portfolio.

  • Creating a form with a skip pattern (skip logic)

    Hello - Using LifeCycle Designer 7.0
    I am creating a form with a simple: Yes/No radio button for one field(quesiton).  I would like to have the form skip to a later field(question) if they answer 'No'.  Can this be coded somehow in FormCalc?
    Is there a way to easily put skip logic (not tab) in a form (Survey).
    Thanks for your time/help.

    You can use the setFocus methos to move the cursor to the field that you want..
    Place it in the click event of the radiobutton.
    In FormCalc:
    if(radioButton1.rawValue == 1) then
         $host.setFocus("<FIELDNAME>");
    endif
    In Java Script:
    if(radioButton1.rawValue == 1)
         xfa.host.setFocus("<FIELDNAME>");
    Thanks
    Srini

  • Creating PDF Forms with InDesign CS6 | CS6 & Creative Cloud Feature Tour for Design | Adobe TV

    Adobe Design Evangelist, Terry White, shows how to create PDF forms with InDesign CS6
    http://adobe.ly/I5cRJm

    Hi
    Is there any method for having text fields align the inputted text to the centre?

Maybe you are looking for

  • HT1414 cant restore my iphone 3g from recovery mode

    cant restore my iphone 3g from recovery mode

  • Images not aligning properly in SWF

    Hi, I'm working on a flash piece with buttons that display images when you rollover them. When I publish the fla the thin lines are blurry and look out of alignment even though they are perfectly aligned when I zoom in on the fla.

  • My Unlimited World is not letting me call German m...

    I work for a German company and communicate with my friends there via mobile phones. I purchased Unlimited World with the primary thought of calling them with Skype. In the description of Unlimited World is says you may call any landline or mobile. W

  • Function, cursor item as parameter in oracle 9i

    Hello, i have a block that make treatment for every cursor iteration in fact, i wanna make a function that take as parameter the cursor iteration so there is two possibilitities , i call this function when looping under the cursor, or when i has a sp

  • Reg:Function module SAPWL_GET_SUMMARY_STATISTIC not working in CRM ABAP 6.0

    Hi All,   When i execute the function module SAPWL_GET_SUMMARY_STATISTIC in CRM ABAP 6.0 passing the values below, PERIODTYPE                     HOSTID                          STARTDATE   it's not showing any values in the summary. it's showing the