Submit button - help

Hello all,
I have a jsp page which has a few input text fields and a Submit button.
When I enter data into these fields and click on Submit, these data get inserted into the a database table.
I generate a password every time I click on the submit button.
Now, even if I do not enter any data into the fields and click on Submit, the password gets genereated and gets added into the database, which should not be the case.
How can I improve this? All help appreciated by this newbie.
Thanks
Regards
Aparna

Hey friend,
well one of the options for solving your problem is while declaring the database table declare a inteigrity constant that the password field should not be null.
So you can direclty get the exception of it.
But this increases lot of load.
It would really gud if at all you can do all this validations at the client side iteslf using java script or some other dynamical mechanism.
Regards,
RAHUL

Similar Messages

  • Submit button help (please)

    I have tried asking for help on this topic before, but didn't get any replies. So I try again.
    I have created a pdf form with a submit button that submits the form to a webservice url. I submit it as HTML.
    I receive the form data just fine in my webservice, but I don't know what to return. It seems that the webservice always returns something. I have tried returning a string but get the following:
    Is it possible to return a message saying that the form was receive ok or that an error occurred?
    Does anyone have an example?
    Thanks
    Birthe

    When you have a form, the form has to point to something so that the action of pushing a button on the page has the website do something.
    <form method="post" action="dothis">
    That pretty much needs to lead the form. In my case, "dothis" is a php page that does the actual heavy lifting. I do not think it is a good idea to put a "mailto" on a website because it invites spam. One might as well announce one's email address to all of the spambots in the world. I don't do that for myself and I won't do that for a client.
    So, in my case, "dothis" is a php call.
    Here, your question probably needs to migrate over to the php help area, but I'll offer a solution:
    <?php
    mail("[email protected]", $subject, $message, $from);
    ?>
    In php, the "mail" command will tell a server (that can send an email) to send an email to the address, along with the text that you have set up for the email subject, the text of the message and the text you gathered from the form for either the name or the email address of the person filling out your form.
    The "dothis" php call takes the information from the filled out form as a post and you use php to parse that posting for the information you need from your form. You can also have php check for form validity or for blanks where you don't want them and stop the script if the visitor did not fill out the form:
    if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,".")))
    echo "<h2>Use Back - Enter valid e-mail</h2>\n";
    $badinput = "<h2>Your message was NOT submitted</h2>\n";
    echo $badinput;
    die ("Go back! ! ");
    if(empty($visitor) || empty($visitormail) || empty($visitorphone) || empty($notes )) {
    echo "<h2>Use your Back button - fill in all fields, No message was sent.</h2>\n";
    die ("Use back! ! ");
    The first "if" statement checks for something approximating a real email address, the second checks for blank fields that are required.
    That should get you started.

  • Help with making an Email Submit button on a form!

    Im making a form using livecycle for the first time.
    Im trying to put on it a email submit button - i used email submit field and made the button. Then in the Objects Palette, in the box that says email address i put in the email address that i want it to be sent to. I then tried to email the form, and i received an email, but the attachment was just a bunch of codes, not the form. I want the email to come through with the PDF form.
    I searched on help and this is what i found:
    3.
    In the Control Type area, select Submit. Data will be submitted according to the settings in the Submit tab.
    4.
    Click the Submit tab and type the URL protocol in the Submit to URL box.
    To
    Use this URL protocol
    Example
    Submit the package to an ftp site
    ftp
    ftp://ftp.gnu.org/gnu/GPL
    Submit the package to a web server
    http
    http://myserver/cgi-bin/
    Submit the package to a secure web server
    https
    https://myserver/cgi-bin/
    Submit the package to an email address
    mailto
    mailto:[email protected]
    5.
    Select PDF from the Submit As list.
    I cant find where to change these options - can someone help?
    Thanks!

    Hi,
    The issue is that if the form is not Reader Enabled, then users with Reader cannot submit the form as a PDF.
    They can submit it as an XML file and then you would re-import this back into the form on receipt. It is an extra step, but it does have the advantage that the data being submitted as an XML file is very small.
    If you really need/want the form to be submitted as a PDF AND your users have Reader, then the form will have to be Reader Enabled.
    There are two options:
    Reader Enable using Acrobat Standard (version 9) or Acrobat Professional (version 8). This will give certain rights, like the ability for users with Reader to save the form and for the form to be submitted as a PDF. However there are licensing restrictions, see EULA.
    The other option is to Reader Enable the form using LiveCycle Reader Extensions ES2. This is a server product, which entails additional cost and a cost to Reader Enable each form. It is intended for processing large volumes of forms/large volumes of data.
    There is a summary here:
    http://assure.ly/gYyYc2
    So there are a couple of options.
    Form NOT Reader Enabled:
    Users cannot save the data they input.
    Data must be submitted as an XML file and processed on receipt.
    Form IS Reader Enabled:
    Users can save the data they input.
    Data can be submitted as a PDF (or XML file).
    Hope that helps,
    Niall
    Assure Dynamics

  • Trying to delete "submit" button. Tried unsucessfully 5 times. Need help and want to start over.

    I created a pdf that I just wanted people to be able to fill in, download, print out and then mail to me.  I followed the instructions from a previous acrobat expert who replied to me yesterday and that did not work.  Now, I've tried this 5 times and the system has blocked me out unless I pay for your advanced system which is $143.  Please help
    Re: Want to delete the "submit" link on a pdf
    created by Lucia Lao in FormsCentral - View the full discussion
    Hi,
    I believe this is a form that you created with FormsCentral and then you downloaded/saved as PDF via the "Save Submission-Enabled PDF" button via the Distribute Tab.
    Please select via FormsCentral app main menu:
    - File -> Save As PDF Form... and then
    - when you get the dialog "Would you like your PDF form to collect responses online in the "View Responses" tab?" select "Don't Collect Responses" button.
    This will save the PDF form without the Submit button/link.
    Thanks,
    Lucia
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5218029#5218029
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: [http://forums.adobe.com/message/5218029#5218029]
    To unsubscribe from this thread, please visit the message page at [http://forums.adobe.com/message/5218029#5218029]. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in FormsCentral by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

    The instructions Lucia gave you were correct. It seems you have a Basic trial account (5 forms). You can just delete the forms you are not using so you can create more. Can you explain in more detail how those instructions above didn't work? I think there is some confusion so any details you can provide will help clear it up.
    Randy

  • 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 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 

  • 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.

  • Email submit button(s) help

    I have a 5 page form and I need each page to go to a different email adress.  I have put a different email submit button on each page, but is there a way to script the button to only send the current page and not any of the others?  Or have one main email submit button that sends each page to a different email address?  I am new to Adobe LiveCycle Designer ES, but I have a (VB) programming background, so it seems like it should be possible with code  Thanks
    Adobe LiveCycle Designer ES ver 8.2

    Hi,
    The submit by email function will attach the complete form to the email. It cannot (afaik) split a form into five different PDFs.
    However there are workarounds.
    If you save the form as a Dynamic XML form in the save as dialog, then you can show and hide pages.
    Here is an example of a form that changes the presence property of pages, depending on the choice selected from the dropdown.
    http://www.assuredynamics.com/index.php/category/portfolio/showing-and-hiding-pages/
    When it comes to something like this it is helpful to split the script. The mouseUp event fires before the click event.
    For example for the email button on page 1, you can modify the script in the example to hide each of the pages 2-5 in the mouseUp event and then in the click event have the email script. In the postSubmit event you could have script to show all the pages again.
    A word of caution - if the user has Reader then the form needs to be Reader Enabled, otherwise the submit as PDF will fail silently.
    Hope that helps,
    Niall
    Assure Dynamics

  • HELP!!!!!!!!! 3 Submit Buttons on 1 JSP page

    Hi,
    I would really appreciate any assistance to my question. I have 3 submit buttons that need to be passed to another JSP page.
    1. Is it possible to use submit 3 times like here?
    <input type="submit" name="btnSub" value="Modify">
    <input type="submit" name="btnSub" value="Remove">
    <input type="submit" name="btnSub" value="Pssword Reset">
    2. Below is my code. Can you show me how to pass the values from the 3 submit buttons?
    Thanks in Advance!
    </form>
    </td>
    <td width=212 style='width:159.0pt;background:#FFE599;padding:0in 0in 0in 0in'>
    <!-- Profile Maintenance ------------------------------------------------------------------------->
    <div align=center>
    <table border=2 cellpadding=0 style='mso-cellspacing:1.5pt;mso-padding-alt:
    0in 0in 0in 0in'>
    <form NAME="queryUserName" method="GET" ENCTYPE="application/x-www-form=urlencoded"
    action="securityProfile.jsp"> <!-- onSubmit = "return checkForm();"-->
    <tr>
    <td colspan=2 style='padding:0in 0in 0in 0in'>
    <p class=MsoNormal align=center style='text-align:center'><b><span
    style='font-size:10.0pt;font-family:Geneva;color:#990000'> Profile Maintenance </span></b> </p>
    </td>
    </tr>
    <tr>
    <td align=center colspan=2 style='padding:0in 0in 0in 0in'>
    <select name="UserID" size="5">
    <option selected value="NO_VALUE"> --Select an Admin-- </option>
    <% while(rset.next())
    v_ID = rset.getString("ID");
    v_Name = rset.getString("Name");
    %>
    <option value="<%= v_ID %>"><%= v_Name%></option>
    <% System.out.println("List of Options counter: *** " + i + " ***"); %>
    <!-- <option value="<%= i %>" > <%= v_Name%> </option> -->
    <%
         i = i + 1;
    %>
    </select></font></td>
    </td>
    </tr>
    <tr>
    <td align="center" style='padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:7.5pt;font-family:Geneva;
    color:#990000'> To modify admin's access to Corp Functions, Business Units, & Dept IDs: </span><br>
    <input type="submit" name="btnSub" value="Modify Profile"> </p>
    </td>
    </tr>
    <tr>
    <td align="center" style='padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:7.5pt;font-family:Geneva;
    color:#990000'> To remove an admin: </span><br>
    <input type="submit" name="btnSub" value="Remove Admin"> </p>
    </td>
    </tr>
    <tr>
    <td align="center" style='padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:7.5pt;font-family:Geneva;
    color:#990000'> To change admin's password: </span><br>
    <input type="submit" name="btnSub" value="Password Reset"> </p>
    </td>
    </tr>
    </form>

    When implementing the code below, it only reads the first form, and then stops there. It doesn't execute the 2nd form.
    <form name='form_1' action='T2.jsp'>
    <input type=hidden name="user" value="Me">
    <input type=submit value='Button1'>
    <form name='form_2' action='T3.jsp'>
    <input type=submit value='Button2'>
    </form>
    </form>
    If I put each form separtely like below, then it returns nothing.
    <form name='form_1' action='T2.jsp'>
    <input type=hidden name="user" value="Me">
    <input type=submit value='Button1'>
    </FORM>
    <form name='form_2' action='T3.jsp'>
    <input type=submit value='Button2'>
    </FORM>
    What's my other alternative? I would appreciate any help.

  • button element won't submit, need help...

    This <button> element is used all throughout our site
    http://www.ocp.org flawlessly.
    However, on the particular page I'm working on right now it won't
    work in conjunction with the drop down menu I'm working with in IE
    6 or 7, can anyone help me out? Thanks!
    I'm working in a private network so I can't show you a live
    version of this page but I've attached the code.

    <button
    onclick='window.location.href='/account/orderHistory''
    type="submit">
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Spencer Hill" <[email protected]> wrote in
    message
    news:[email protected]...
    > This <button> element is used all throughout our
    site
    http://www.ocp.org
    > flawlessly. However, on the particular page I'm working
    on right now it
    > won't
    > work in conjunction with the drop down menu I'm working
    with in IE 6 or 7,
    > can
    > anyone help me out? Thanks!
    >
    > I'm working in a private network so I can't show you a
    live version of
    > this
    > page but I've attached the code.
    >
    > <form id="userdata" name="userdata" method="post"
    > action="/account/orderHistory">
    > <table cellpadding="0" cellspacing="0">
    > <tr>
    > <?php
    > if (isset($accounts)) {
    > $num_accounts = sizeof($accounts);
    > if ($num_accounts >= '2') {
    > echo "<select name=cust_id>";
    > foreach ($accounts as $cmid => $value) {
    > $name = $value['organization'];
    > if ($name == '') {
    > $name = $value['name'];
    > }
    > if ($cmid == $cust_id) {
    > echo "<option value='" . $cmid . "' selected>" .
    $name . ' (#' . $cmid .
    > ")</option>";
    > } else {
    > echo "<option value='" . $cmid . "'>" . $name . '
    (#' . $cmid .
    > ")</option>";
    > }
    > }
    > echo "</select><button
    >
    onclick='window.location.href='/account/orderHistory''>submit</button></tr>";
    > }
    > else {
    > foreach ($accounts as $cmid => $value) {
    > $name = $value['organization'];
    > if ($name == '') {
    > $name = $value['name'];
    > }
    > }
    > echo $name;
    > echo "</td></tr>";
    > echo "<input type=hidden name='cust_id' value='" .
    $cmid . "'>";
    > }
    > }
    > ?>
    >
    > <!--
    > <tr>
    > <td>Order Start Date:</td>
    > <td><input type='text' value='<?php echo
    $start_date ?>'
    > name='start_date'></td>
    > </tr>
    > <tr>
    > <td>Order End Date:</td>
    > <td><input type='text' value='<?php echo
    $end_date ?>'
    > name='end_date'></td>
    > </tr>
    > -->
    > </table>
    >
    > <input type=hidden name=action value=history>
    >
    > </form>
    >
    > <form id="userdata2" name="userdata2" method="post"
    > action="/account/orderHistory">
    > <table class="results" cellpadding="0"
    cellspacing="0">
    > <tr style="text-decoration: none; font-size: 14px;
    color: #fff;
    > background-image:
    url(/ocpimages/tabs/tabs_dscrptn_bg.gif); font-weight:
    > bold;">
    > <td style="border-right: solid 1px #999;
    padding-right: 0;">Date</td>
    > <td style="border-left: 1px solid #ccc; border-right:
    solid 1px #999;
    > padding-right: 0;">Invoice No.</td>
    > <td style="border-left: 1px solid #ccc; border-right:
    solid 1px #999;
    > padding-right: 0;">Status</td>
    > <td style="border-left: 1px solid #ccc; border-right:
    solid 1px #999;
    > padding-right: 0;">Ship Date</td>
    > <td style="border-left: 1px solid #ccc; border-right:
    solid 1px #999;
    > padding-right: 0;">Tracking</td>
    > <td style="border-left: 1px solid #ccc; border-right:
    solid 1px #999;
    > padding-right: 0;">Details</td>
    > <td style="border-left: 1px solid #ccc;
    padding-right: 0;">Amount</td>
    > </tr>
    >
    > <?php
    > if (isset($orders)) {
    > $td_class = 'white';
    > foreach ($orders as $i => $value) {
    > $entry_date = $value['entry_date'];
    > $invoiceID = $value['invoiceID'];
    > $order_amt = $value['order_amt'];
    > $status = $value['status'];
    > $ship_date = $value['ship_date'];
    > $tracking_id = $value['tracking_id'];
    > $tracking_id = explode('|', $tracking_id);
    >
    > switch ($status) {
    > case ('RTP'):
    > $status_desc = "Shipped";
    > break;
    > case ('RTI'):
    > $status_desc = "Shipped";
    > break;
    > case ('O'):
    > $status_desc = "Order Submitted";
    > break;
    > default:
    > $status_desc = "Order Picked";
    > }
    > if ($invoiceID != '') {
    > echo "<tr valign='top' class=' . $td_class . '>";
    > echo "<td>". $entry_date. "</td>";
    > echo "<td style='text-align: center;'>" .
    $invoiceID . "</td>";
    > echo "<td>" . $status_desc . "</td>";
    > echo "<td>" . $ship_date . "</td>";
    > if ($tracking_id != '') {
    > $suburl = '';
    > foreach ($tracking_id as $key => $val) {
    > $track_cnt = $key + 1;
    > $suburl = $suburl . "&InquiryNumber" . $track_cnt .
    "=" . $val;
    > }
    > $suburl =
    > "
    http://wwwapps.ups.com/etracking/tracking.cgi?tracknums_displayed="
    > $track_cnt .
    "&TypeOfInquiryNumber=T&HTMLVersion=4.0" . $suburl .
    > "&track=Track";
    > echo '<td><a target="_new" href="' . $suburl .
    '">Tracking
    > Detail</a></td>';
    > } else {
    > echo "<td> </td>";
    > }
    >
    > $suburl =
    "/account/orderHistory?action=detail&invoiceID=" . $invoiceID .
    > "&cust_id=" . $cust_id;
    > echo '<td><a href="' . $suburl . '">Product
    Detail</a></td>';
    > echo "<td style='text-align: right;'>$ " .
    $order_amt . "</td>";
    > echo "</tr>";
    >
    > $td_class = $td_class == 'white' ? 'blue' : 'white';
    > }
    > }
    > }
    > ?>
    > </table>
    > </form>
    >

  • 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?

  • No submit button in distributed form - JavaScript help

    I have creted a from in Live Cycle Designer. After distribution submit button is not visible in Acrobat and Reader. I've looked at the form JavaScript and find out this part of code which probably hide submit button in Acrobat 9:
    showAutoGenSubmitBtn = function(bShow)
        var autoGenSubmitName = "%AUTO_GEN_SUBMIT_NAME%";
        var fld = this.getField(autoGenSubmitName);
        if (fld != null)
            var b= this.dirty;
            if (bShow)
                fld.display = display.noPrint;
            else
                fld.display = display.hidden;
            this.dirty= b;
    // Hide the auto-generated submit button for Acrobat/Reader >= 9.0
    if (app.viewerVersion >= 9)
        showAutoGenSubmitBtn(false);
    else
        showAutoGenSubmitBtn(true);
    I am not familair with JavaScript so I would apprecite if someone can help me how to edit it to make submit button visible.
    Below is a complete JaveScrip of mentioned form.
    Thanks
    //@@FORMSWORKFLOW auto-generated script
    AdobePatentID="B643"
    var AdobePatentID = "AdobePatentID=\"B643\"";
    // Show a dialog to ask the user's name and email during submit.
    askUserIdentity = function(doc)
        // string constants
        var dlgStrings =
            sDlgTitle:          "Send Form",
            sEmailLabel:        "&Email Address:",
            sNameLabel:         "Full &Name:",
            sSubmitLabel:       "&Send",
            sToLabel:           "To:",
            sSubjectLabel:      "Subject:",
            sSubjectContent:    "Submitting Completed Form",
            sAttachmentLabel:   "Attachment:",
            sFromLabel:         "From:",
            sErrorEmailRequired:"Please enter a valid email address.",
            sErrorNameRequired: "Please enter your name."
        var dlgElems = [];
        dlgElems[dlgElems.length] = {
            type: "view",
            align_children: "align_left",
            elements:
                    type: "view",
                    align_children: "align_row",
                    elements:
                            type: "static_text",
                            name: dlgStrings.sToLabel,
                            width: 80,
                            bold: true,
                            font: "dialog"
                            type: "static_text",
                            item_id: "sdto",
                            width: 270,
                            font: "dialog"
                    type: "view",
                    align_children: "align_row",
                    elements:
                            type: "static_text",
                            name: dlgStrings.sSubjectLabel,
                            bold: true,
                            width: 80,
                            font: "dialog"
                            type: "static_text",
                            name: dlgStrings.sSubjectContent,
                            width: 270,
                            font: "dialog"
                    type: "view",
                    align_children: "align_row",
                    elements:
                            type: "static_text",
                            name: dlgStrings.sAttachmentLabel,
                            bold: true,
                            width: 80,
                            font: "dialog"
                            type: "static_text",
                            item_id: "atch",
                            width: 270,
                            font: "dialog"
                    type: "gap",
                    height: 5,
                    width: 350
                    type: "static_text",
                    name: dlgStrings.sFromLabel,
                    bold: true,
                    font: "dialog"
                    type: "static_text",
                    name: dlgStrings.sEmailLabel,
                    bold: true,
                    font: "dialog"
                    type: "edit_text",
                    item_id: "emal",
                    width: 250
                    type: "static_text",
                    name: dlgStrings.sNameLabel,
                    bold: true,
                    font: "dialog"
                    type: "edit_text",
                    item_id: "name",
                    width: 250
                    type: "gap",
                    height: 5,
                    width: 350
                    type: "ok_cancel",
                    ok_name: dlgStrings.sSubmitLabel
        var desc = {
            resourceContext: "AcroForm",
            description:  {
                name: dlgStrings.sDlgTitle,
                elements: [
                        type: "view",
                        align_children: "align_left",
                        elements: dlgElems
        desc.initialize = function(dialog)
            var METADATA_ANNOT_NAME = "adhocFormState";
            var PROP_INITIATOR = "initiator";
            var initiator;
            var annot = doc.getAnnot(0, METADATA_ANNOT_NAME);
            if (annot != null) {
                var arrProps = new Array();
                arrProps = annot.contents.split(";");
                initiator = getProperty(arrProps, PROP_INITIATOR);
            var decodedFileName = unescape(doc.documentFileName);
            var initVars =
                sdto: initiator,
                atch: decodedFileName
            dialog.load(initVars);
        desc.validate = function(dialog)
            var values = dialog.store();
            if (values.emal == "") {
                app.alert(dlgStrings.sErrorEmailRequired);
                return false;
            if (values.name == "") {
                app.alert(dlgStrings.sErrorNameRequired);
                return false;
            return true;
        desc.commit = function(dialog)
            this.result = new Object;
            var values = dialog.store();
            this.result.name = values.name;
            this.result.email = values.emal;
        var ret = app.execDialog(desc);
        if (ret == "ok")
            return desc.result;
        else
            return null;
    askEmailClient = function(doc)
    // string constants
        var dlgStrings =
            sDlgTitle:      "Select Email Client",
            sDlgText:       "Please indicate the option which best describes how you send mail.",
            sDesktop:       "&Desktop Email Application",
            sDesktopDesc:   "Choose this option if you currently use an email application such as Microsoft Outlook Express, Microsoft Outlook, Eudora, or Mail.",
            sInternet:      "&Internet Email",
            sInternetDesc:  "Choose this option if you currently use an Internet email service such as Yahoo or Microsoft Hotmail. You will then need to save your form and return it manually to [email protected] using your Internet email service."
        var dlgElems = [];
        dlgElems[dlgElems.length] = {
            type: "view",
            align_children: "align_left",
            alignment: "align_fill",
            elements:
                    type: "static_text",
                    name: dlgStrings.sDlgText,
                    width: 350,               
                    font: "dialog"
                    type: "radio",
                    name: dlgStrings.sDesktop,
                    item_id: "rad1",
                    group_id: "rgrp",
                    bold: true,
                    font: "dialog"
                    type: "view",
                    align_children: "align_top",
                    elements:
                            type: "gap",
                            width: 20
                            type: "static_text",
                            name: dlgStrings.sDesktopDesc,
                            wrap_name: true,
                            width: 342,
                            font: "dialog"
                    type: "radio",
                    name: dlgStrings.sInternet,
                    item_id: "rad2",
                    group_id: "rgrp",
                    bold: true,
                    font: "dialog"
                    type: "view",
                    align_children: "align_top",
                    elements:
                            type: "gap",
                            width: 20
                            type: "static_text",
                            name: dlgStrings.sInternetDesc,
                            wrap_name: true,
                            width: 342,
                            font: "dialog"
                    type: "gap",
                    height: 5,
                    width: 350
                    type: "ok_cancel",
        var desc = {
            resourceContext: "AcroForm",
            description:  {
                name: dlgStrings.sDlgTitle,
                width: 250,
                elements: [
                        type: "view",
                        align_children: "align_left",
                        elements: dlgElems
        desc.commit = function(dialog)
            this.result = new Object;
            var values = dialog.store();
            this.result.send = values.rad1;
            this.result.save = values.rad2;
        var ret = app.execDialog(desc);
        if (ret == "ok")
            return desc.result;
        else
            return null;           
    AdobePatentID="B643"
    // set a new property value to a property in the specified array.
    setProperty = function(arrProps, propName, propValue)
        var i;
        var bSet = false;
        for (i = 0; i < arrProps.length; i++) {
            var propParts = new Array();
            propParts = arrProps[i].split(":");
            if (propParts[0] == propName) {
                propParts[1] = propValue;
                arrProps[i] = propParts.join(":");
                bSet = true;
                break;
        if (!bSet)
            arrProps[arrProps.length] = propName + ":" + propValue;
    AdobePatentID="B643"
    // get the value for a property in the specified array.
    getProperty = function(arrProps, propName)
        var i;
        for (i = 0; i < arrProps.length; i++) {
            var propParts = new Array();
            propParts = arrProps[i].split(":");
            if (propParts[0] == propName) {
                return propParts[1];
        return null;
    AdobePatentID="B643"
    showAutoGenSubmitBtn = function(bShow)
        var autoGenSubmitName = "%AUTO_GEN_SUBMIT_NAME%";
        var fld = this.getField(autoGenSubmitName);
        if (fld != null)
            var b= this.dirty;
            if (bShow)
                fld.display = display.noPrint;
            else
                fld.display = display.hidden;
            this.dirty= b;
    // Hide the auto-generated submit button for Acrobat/Reader >= 9.0
    if (app.viewerVersion >= 9)
        showAutoGenSubmitBtn(false);
    else
        showAutoGenSubmitBtn(true);

    I'm distributing the form in Acrobat Pro 9.
    I created the form in Live Cycle Designer.  Save, then open in Acrobat pro.  Extend Features to Acrobat Reader, click the drop down box on Forms and hit distribute.  I save a local copy.  When I open the distributed form the buttons do fall silent, the Submit Button on the purple line up top still works, but that doesn't appear in reader and the people who will be completing the form all use reader.  Any suggestions for a fix?
    I'd like to distribute because that automates the tracking.  It works undistributed.

  • Help I am trying to update my card info and the submit button on the site is not working

    Help I am trying to update my card info and the submit button on the site is not working

    What does the message say exactly? Are you sure it's not telling you the phone has no more space?

  • Shortcut on Quiz Submit button make "click" not work! CP8 - HELP

    Can someone help me out here?
    Okay, I have a few quiz questions. If I have not shortcut on the submit button, it works just fine. If I put "Enter" on the submit button, I cannot click it. Yes, Allow Mouse Clicks is checked.
    I would like my users to be able to press enter or click.
    Running cp8 on win 8.1. Tried in preview mode, as well as published in IE and Chrome.
    Feels like I'm losing my mind! I have also tried with accessibility enabled and not. Not that it should make a difference, but I tried it.
    Thanks for any insight gang,
    Lori

    Looks like I have fallen victim to the transparent button again.  When I switch the quiz buttons to text or image, the shortcuts on them work just fine. Then they are transparent I have issues.  The nice thing about transparent is that you can color them. Because you can't use smartshapes as actual quiz buttons (submit, etc) at least not that I'm aware of, I have had to place a smart shape on the masterslide and overlay a text button with "make transparent" selected on top to make my buttons look AND behave correctly. Adobe is now aware of the issue.
    -- Lori

Maybe you are looking for

  • F4 is not working

    Hi Frds Im working in ECC 7 ,when i click F4 ,im getting blank screen ,without any datas .Can anyone tell me how to bring tht . Thanks By PARI

  • How do I get rid of sweetim

    how do I get rid of sweetim which is linked to some type of competition scamming

  • 5G 30G Ipod won't charge or sync

    My Ipod won't charge when connected to my laptop. It does charge when plugged into my car radio transmitter and dock. When I plug it into my laptop fully charged I get a message from windows explorer asking me if I want to scan and clean it to repair

  • Mail re-sizing attachment

    Hi I needed to send some photographs to a newspaper so I wanted to send them full size. The photos are stored in iPhoto so I selected the first and pressed Email. Despite selecting Actual Size in Mail, the size dropped from 9.3mb to 5.3? Does anyone

  • Logo on all pages in sapscript

    ...At the moment I can get on first page  but How to get logo on all pages..help? Thanks Edited by: BrightSide on Nov 9, 2010 8:39 AM