Help required with submit button

Hi,
I need a little help with the submit button. The user submits the form as PDf to a servelt using submit button. The form submitted is validated at server side. If there are any errors the error messages are to be displayed to the user as a part of Form.
My approach was to have a hidden field present in the form. Once the error messages are recieved the field is to be populated with these messages and made visible true.
Problem with my approach:
1) How to send back data to the field using the servlet code which we have?

Unless if you use a Webservice, sending data back to form from the Servlet may not possible.
Once the form submits the data to the Servlet, the connection will be lost between the form and Servlet.
But if you use a Webservice, you can trap the response and display it to the user.
Other alternative to Servlet approach is, display a another page in the browser with the response.
So the user after submits will be notified of the result in a new window.
Thanks
Srini 

Similar Messages

  • Help required with multiple buttons

    Hi all, i'm working on a charity project that entails the clicking of buttons in order to purchase a "virtual plot" on a grid system.
    There are hundreds of buttons involved.
    What I need to know are the following :
    a) Is there a way for me to set the actionscripting to a "parent" button then multi copy the button around the grid maintaining the scripting.
    b) When a button is clicked, it goes out to paypal, is there a way to AUTOMATICALLY disable the button once the transaction takes place
        and the user gets re-directed back to the website.
    c) When different buttons are clicked, is there a way to only have the URL of the last clicked button open up......in other words not have a whole
        load of different pages to the same paypal account open. (EG. If I click 20 buttons, I don't want 20 links to paypal open, only the last clicked button)
    I guess there is quite a bit of information I'm looking for help with but I am fairly new to Actionscript. Any help at all is greatly appreciated.
    Many thanks in advance.
    Ray

    a) Is there a way for me to set the actionscripting to a "parent" button then multi copy the button around the grid maintaining the scripting.
    yes, but that's probably not what you want because each button will do exactly the same thing (unless you encode an if-statement that takes different actions based on the objects instance name).  you'll probably want to use a for-loop to encode your buttons so you don't have much typing to do.
    b) When a button is clicked, it goes out to paypal, is there a way to AUTOMATICALLY disable the button once the transaction takes place
        and the user gets re-directed back to the website.
    yes, as long as you setup flash and paypal to communicate when a transaction is completed.
    c) When different buttons are clicked, is there a way to only have the URL of the last clicked button open up......in other words not have a whole
        load of different pages to the same paypal account open. (EG. If I click 20 buttons, I don't want 20 links to paypal open, only the last clicked button)
    yes, but flash needs some way to determine a user has made the final choice.

  • I have an InfoPath with submit button, publish the same to form library.

    Hi All,
    i have an InfoPath with submit button, publish the same to form library.
    Now, i open the form  fill it and attach some files, when i press submit button, that attachments will go to the particular document library.
    Can any one help me out.
    Thanks in Advance!

    Hi Anil,
    According to your description, my understanding is that the attachments attached to the form were submitted to an documents library.
    By default, the attachments should be attached with the InfoPath form and will not be submitted anywhere.
    There may be some customizations on the form that is to submit the attachments to the document library.
    Please check the links below if the customizations are made in the form.
    http://www.bizsupportonline.net/blog/2010/01/upload-document-sharepoint-infopath-form/
    http://www.bizsupportonline.net/blog/2010/04/top-10-questions-infopath-file-attachments/
     Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Help required with Photoshop Elements 4.0 this has been installed on my new Toshiba laptop with windows 8.1 for some 18 months and operating well. Now it will not open, message pops up saying "attempt to access invalid address" then "application not respo

    Help required with Photoshop Elements 4.0 this has been installed on my new Toshiba laptop with windows 8.1 for some 18 months and operating well. Now it will not open, message pops up saying “attempt to access invalid address” then “application not responding” Suggestions how to access would be much appreciated. Tks. Stuart

    What is the size of your hard disk?  PSE 4 is a very old program and I suspect it is not able to access the entire hard disk on your machine.  Just a thought here.

  • Help require with installing Adobe Acrobat onto my Macbook Pro Retina.

    Help require with installing Adobe Acrobat onto my Macbook Pro Retina.
    I have successfully installed all of my creative cloud apps with the exception being acrobat.
    I cannot print from Indesign to PDF.
    I have unistalled, reinstalled and still no Adobe Acrobat.
    I now have to go back to Windows 8 and create the PDF's there.
    Any one know how to get around this issue?
    Thanks in advance
    Kelvin

    OSX has effectively killed the ability to print to pdf, (print to pdf eliminates most of the "Rich features" of current pdf).
    Export from InDesign, always, excpet for the 1% of the time where you know why print to pdf would produce a better result.

  • Associating two events with submit button using  javascript in jsp

    Hi
    How can i Associate two events with submit button using javascript in jsp. Firstly it should insert the data to database and secondly it should close the same pop-up window

    Have something like :
    <input type="submit" name="submitbtn" value="Click me" onClick="function1(); function2(); " />
    You just call both functions sequentially, it's that simple. Although using javascript to work with a database, that seems a bit tricky.

  • Help required with (soundcard) connection / settings, thanks in advan

    Help required with connection / settings between a Creative Sound Blaster Audigy Platinum EX (soundcard) and a Creative DTT3500 Digital (5. speakers).
    The problem
    No sound from any of the speakers. (Exception can plug in headphones at front)
    Background
    My computer has been recently upgraded at my local computer shop and all programs re-installed (including driver update from Creative's website). However after reconnecting speakers and restoring the original settings I?m getting no sound from any of the speakers. I?ve followed all the available advice/instructions I can find on this website and manuals to no avail.
    Set-up
    Physical
    (Digital DIN) Speakers/decoder amplifier (DTT3500) connected to the (digital out) soundcard (Audigy Platinum EX) using minijack to DIN cable. (As per instruction manual)
    Software
    Creative Audio Consul ? setting as per instructions, however have tried variations in vain. (Note: above tabs there is a select device box with SB Audigy [A0000] in it ? only option. Just wondering what [A0000] means?)
    Your advice please. A simple step by step guide would be appreciated, many thanks in advance, Jon

    "My computer has been recently upgraded at my local computer shop and all programs re-installed (including driver update from Creative's website). "
    Do you have the original installation disk?
    If so, try installing THOSE drivers, ESPECIALLY if it worked before. Be sure to uninstall what is there now, first.
    Its natural for most people to want the 'latest' drivers for their hardware. However:
    After experiencing some difficulties with some CL 'updates' for certain products, I now avoid them UNLESS I am having a PROBLEM with the existing drivers.

  • I was online earlier this week and liked the forms with submit buttons and the Adobe site directed me to upgrade to Adobe PRO XI in order to use forms so I bought five licenses. Just had it installed today and it is now asking me to sign up for forms Cent

    I was online earlier this week and liked the forms with submit buttons and the Adobe site directed me to upgrade to Adobe PRO XI in order to use forms so I bought five licenses. Just had it installed today and it is now asking me to sign up for forms Central in order to use this feature. What gives? The Adobe site gave me the impression that I would have this feature after purchasing the new upgrade. I would not have purchased the upgrade, let alone five of them had I know this. Am I missing something?

    Acrobat XI comes with the Fromscentral AIR application and the ability to create PDF forms authored in Formscentral. To have more than the free (1 form with 50 responses) level account you need to sign up for a Formscentral subscription.
    Andrew

  • Created a form in Forms Central. Exported the PDF with Submit Button Option. When the PDF is filled out and submit clicked, it comes back asking for required fields to be filled but they already are. Any Help?

    b

    Hi;
    OK - I can clarify some things and tell you how to do what your looking for. 
    The desktop FormsCentral application tools are really designed towards create forms that do collect data on FormsCentral servers.  You can still easily create PDFs that do not submit data to FormsCentral, but you'll have to add any alternative submit functionality using the Forms tools in Acrobat.  You can create a PDF without the submit button in either case, signed in/out of the Desktop Application from the "File" - "Save as PDF Form" menu item.  You can then modify the PDF in Acrobat XI Pro by doing a "Save A Copy", when you open the copy you can edit it any way you like, adding a "Submit" button that email's the PDF/Responses back to you...
    Here's how: In Acrobat open the PDF you saved from the FormsCentral Desktop application and go to "File" - "Save a Copy" and choose a location, this will remove the security.  Open up the copy you just created and you can now edit it, here is a YouTube video tutorial using Acrobat XI, he covers the email button in about two minutes, there are lots of tutorials out there but this one is easy to follow:,
    http://www.youtube.com/watch?v=Jql1wp5Gofs
    Thanks,
    Josh Corey
    FormsCentral Team

  • Need help with Submit button

    I'm needing a script that locks all of the fields once the submit button is pressed and it's emailed to someone else. Is that possible? Thanks in advance for your help.

    Right now I'm using javascript to submit the form. I'm using
         this.mailDoc({
         bUI: true,
         cTo: [email protected],
         cSubject: ""
    So I need to incorporate the script you gave me with this script that I'm already using?

  • Help with submit button remove null value

    Hello,
      First of all I dont know much about java, but I wanted to create a submit button and I did alot of research.  I want a button that will email some pdf files I have created in LiveCycle.  So far everyting works but my code needs help.
    There are a few fields I want to be place in the body of the e-mail, but if left blank I dont want null to apear on the email subject or body.
    Here is what I have so far *this is a work around I like to konw the proper code.
    var 
    strToAddress, strCCAddress, strSubject, strMessagestrToAddress
    = myemail@atwork;strCCAddress
    = myemail@atwork;
    strSubject
    = "Account "+DropDownList1.rawValue+" For: " +last.rawValue +", " +first.rawValue +" " +mi.rawValue;
    if 
    (mi.rawValue ==null || mi.rawValue =="")strSubject = "Account "+DropDownList1.rawValue+" For: " +last.rawValue +", " +first.rawValue;
    strMessage
    = "Please " +DropDownList1.rawValue +" account for " +"\n"+first.rawValue +" " +mi.rawValue +". " +last.rawValue +"\n\n*All provisions in  have been met" +"\n\n Comments: " +com.rawValue;
    if 
    (mi.rawValue ==null || mi.rawValue =="")strMessage = "Please " +DropDownList1.rawValue +" account for " +"\n"+first.rawValue +" " +last.rawValue +"\n\n*All provisions in have been met" +"\n\n Comments: " +com.rawValue;
    event.target.submitForm({cURL
    :"mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + strSubject + "&body=" + strMessage,cSubmitAs:"PDF",cCharset:"utf-8"});
    //this.resolveNode("#event").submit.target = "mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + strSubject + "&body=" + strMessage;
    The 4 fields am working on are First name, last name, Mi and comments.  First and last are alwasy used, but if MI is not I dont want Null in there, with what I have above it works but its messy.  I wanted to do the same with Comments if its left blank I like for it to read "Comments: None" not null
    on the If statement I just re did the whole deal with out the  mi.rawvalue but i now that is not right way... any help would be great.
    Thanks

    I believe that you should re-post this in either the Forms or the Designer forum.  You are more likely to get the right folks to look at it there.
    Generally this forum is for building custom Document Service Component (DSC) plugins that extend the LiveCycle ES server side product.

  • Help with submit button, signatures and locking fields

    https://acrobat.com/#d=sCcToPsLqquP0uePmVL1pQhttp://https://acrobat.com/#d=ZsRL5CeME*4iV3VHnvUFXw
    Well here's a doozy for ya. I have no idea what I'm doing as you will be able to see when you look at my form.
    What I want to happen is to have the user fill out the form, choose the operations manager and select submit button associated with the drop down box. All other dropdown boxes and submit buttons should be hidden. I need the form to lock so there are no edits except the signature field, the next dropdown box and submit button. I'd like to customize the email with a specific subject line and specify the email address based on the person selected from the drop down box. I'd like this to repeat itself until there are no more signature fields left. It is very important that this document follow the order specified.
    I tried to use an example Niall put out there to use regular buttons as submit buttons with script. I changed a couple things and it worked to submit the form based on the person selected but I still do not know how to lock the fields. Long story short, I broke what did work and don't know how to do what I really want to do or fix what had once worked. I don't understand javascript so please, if you're willing to help teach me, be patient and spell it out like i'm speaking a foreign language.
    Oh boy, even I don't want to do this. What a mess!

    I believe that you should re-post this in either the Forms or the Designer forum.  You are more likely to get the right folks to look at it there.
    Generally this forum is for building custom Document Service Component (DSC) plugins that extend the LiveCycle ES server side product.

  • Php sql image editor - help with submit buttons!

    Hi,
    I have recently setup a website for my real-estate company, with a makeshift CMS behind it for my staff to use when updating properties.
    I have a slideshow on my site for each property, which is populated through sql blobs (I know alot of people dont think this is the best method but I have managed to get it working so I am happy with it!).
    Assuming the database has 4 fields - id, image1, image2, and image3 - I have managed to build separate pages to edit image1, image2 or image3 based on the id as per:
    <?php
    $db_host = 'xx'; 
    $db_user = 'xx';
    $db_pwd = 'xx';
    $database = 'xx';
    $id=$_GET['id'];
    ?>
    <?php
    if (!mysql_connect($db_host, $db_user, $db_pwd))
        die("Can't connect to database");
    if (!mysql_select_db($database))
        die("Can't select database");  
    function sql_safe($s)
        if (get_magic_quotes_gpc())
            $s = stripslashes($s);
        return mysql_real_escape_string($s);
    if ($_SERVER['REQUEST_METHOD'] == 'POST')
              if (!isset($msg))
                    $data = file_get_contents($_FILES['photo']['tmp_name']);
                    $data = mysql_real_escape_string($data);
                    mysql_query("UPDATE slideshow SET image1='$data' WHERE id='$id'");
                    $msg = 'Success: image uploaded';
            ?>
    <html><head>
    <title>Slideshow Images</title>
    <meta http-equiv="content-type" content="text/plain; charset=utf-8" />
    </head>
    <body>
    <table width="974" border="1">
        <tr>
          <td width="158"><img src="ss/show_slideshow1.php?id=<?php echo $id ?>" alt="Image1"></td>
          <td><?php
    if (isset($msg))
    ?><?=$msg?><?php
    ?>
    </td>
    <td width="664"><form action="<?=$PHP_SELF?>" method="POST" enctype="multipart/form-data">
    <input type="file" name="photo" id="photo">
    <input type="submit" value="upload">
    </form></td></tr></table>
    The above code will display image1, and let me edit it using a simple submit button.
    What I am trying to do though, it to get all the images for the property where id ='$id' on one page with respective edit buttons. I can display them all on the same page easily, but cannot seem to crack the UPDATE form for each image.
    Appreciate any advice or help in solving this!!
    Thanks
    Jack

    Your code has been been copied to the end of the style rules.. not the rest of the html.
    It would actually be better if you could provide a link to the live site, it's always much better for troubleshooting purposes to see the live page.
    Can you do that?

  • Help with submit button on PDF form

    I created a form via the Forms Central desktop app then saved it as a PDF to my desktop.  When opening in Adobe Acrobat XI Pro, I noticed that I am unable to include a submit button - it does not let me edit the PDF.  I've tried going back into Forms Central and adding a submit button, but that feature is not available anywhere.  Any suggestions?
    PS - My preference is to have the responses returned to me, not my Forms Central account.
    Thanks so much.

    Hi;
    OK - I can clarify some things and tell you how to do what your looking for. 
    The desktop FormsCentral application tools are really designed towards create forms that do collect data on FormsCentral servers.  You can still easily create PDFs that do not submit data to FormsCentral, but you'll have to add any alternative submit functionality using the Forms tools in Acrobat.  You can create a PDF without the submit button in either case, signed in/out of the Desktop Application from the "File" - "Save as PDF Form" menu item.  You can then modify the PDF in Acrobat XI Pro by doing a "Save A Copy", when you open the copy you can edit it any way you like, adding a "Submit" button that email's the PDF/Responses back to you...
    Here's how: In Acrobat open the PDF you saved from the FormsCentral Desktop application and go to "File" - "Save a Copy" and choose a location, this will remove the security.  Open up the copy you just created and you can now edit it, here is a YouTube video tutorial using Acrobat XI, he covers the email button in about two minutes, there are lots of tutorials out there but this one is easy to follow:,
    http://www.youtube.com/watch?v=Jql1wp5Gofs
    Thanks,
    Josh Corey
    FormsCentral Team

  • Fighting with Submit Button and Return Address / distributing Forms

    I go crazy, too ! We designed some smart forms for a new evaluation process, too, and had a successfully test within our IT collegues. Now we handed the process over to the users, and the problems are on!
    We made sure that everyone uses the same version of Adobe 9.1.2 Pro - but not 2 users do have the same results.
    We found following 2 major issues:
    1) When opening the _distributed.pdf - users either completly missing the pink bar with  Highlight fields / Submit Form
    or, very odd, just the Submit Form button
    2) For those who fortunatly have the Submit Button, another odd thing happens:
    The Send form correctly shows the to: address .....
    Our Desktop Email Application is Notes...
    Guess what .... Now the Email adress changes to [email protected]   ( this worked fine in our testings before...)
    Do you have any clue from where this address is pulled ???? We checked the identitity Info in the Adobe installation at the users computers, the email and name entries are correct there.....
    Please help !!!

    I am pretty sure the answer is in the script. I have put together pieces of script from other suggestions and I am pretty sure I have ascrewed something up  along teh way. I have looked at the attached link and that is where I got some of the script you see below. I am sure you will refer to me as the hatchet person who chopped the script up. sorry. (It is in the Mouse Up) This does work, sort of...It will give the user the message that the required fields are not filed in if they are blank, but it will send the email, but without the custom message in the subject line.
    if (employeename.rawValue != null || employeename.rawValue != "") {
    vSubject  = "Form completed by " + employeename.rawValue;
    vBody = "The form has been sent by " + employeename.rawValue;
    if  (completedate.rawValue != null || completedate.rawValue != "") {
    vBody   = vBody + " on " + completedate.rawValue;
    if  (EmployeeID.rawValue != null || EmployeeID.rawValue != "") {
    vBody = vBody + " Your ID is: " + EmployeeName.rawValue;
    var oDoc = event.target;
    oDoc.mailDoc({
         bUI: false, 
         cTo: "[email protected]",     cSubject: "Statement from " + EmployeeName.rawValue + "

Maybe you are looking for

  • Lumia .sms (text messages) via pc?

    hi all, its probably not the first one about this, but is there a way to send type sms messages via PC? i love my lumia 920 but if i had known in advance that pc suite would not work anymore this would affected my choice... its a feature i used allll

  • Error in starting JXTA application

    i am experiencing a error whenever i run a application using JXTA and create a new peer. the error message i got is: <INFO 2006-05-16 10:46:35,375 NullConfigurator::<init>:146> JXTA_HOME = C:\Documents and Settings\Lab 131\Desktop\ToolsZip\JXTA_SE\jx

  • Boiler plate texts conversion from English into Chinese in forms6.0

    Dear friends, We need solution for converting all english boilplate texts in forms into Chinese language text. We have created database with chinese char set. How to configure forms to accept and display chinese characters. Pls, give me the solution

  • Feature request: Select emails by count-from-sender

    Please allow me to select emails by count? e.g. indexing all the senders and counting the emails received from each. Here's how that would help: When it comes to free up a few Gigs of space in disk and improve Mail's performance, selecting thousands

  • IPhone 5s, Wrong Image Size

    Hello! I have noticed a problem between my phone and a friends. We take a lot of pictures for work (location scouting, etc.) but her images seems to have a different file size than that of mine. When taking a picture, mine are usually ~1.5MB (sometim