Simple js submit button query! - help!

Hi guys,
I have a 1 page livecycle pdf form which has fields and a submit button. When the form is submitted it sends the pdf to our server, saves it, attaches it to an email then emails it..
I have an issue where the form is being sent via email and the submit button is still clickable.
This is the code I have on the 'mousedown' of the form
[code]
if
(form1.execValidate() )
// Get the field containers from each page.
for (var nPageCount = 0; nPageCount < xfa.host.numPages; nPageCount++)
var oFields = xfa.layout.pageContent(nPageCount, "field");
var nNodesLength = oFields.length;
// Set the field property.
for (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++)
oFields.item(nNodeCount).access
= "readOnly";
Button4.presence
= "hidden";
[/code]
what I need to avoid is, if a user doesnt enter a mandatory field it locks the whole form making it impossible to send again!
Is there a simple way to once the button is clicked (and all mandatory fields populated) the forms buttons will be disabled on the version received on email?
thanks for looking guys
hope someone can help!

Layers and CSS are you best friends. Put the contents of the arraylist inside a layer that has it visible value set to false. When the button is clicked it triggers a javascript that sets the layers visibility to true and whoala.... it is displayed. Inside that layer with the arraylist you may want to put another button that allows you to 'close' that layer again, hiding its arraylist content.

Similar Messages

  • 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

  • Execute query when submit button

    Hello, everybody.
    In my application I' ve 3 multiselect list and one button 'GO'.
    I would want after to have selected the values click on 'GO' and to execute one query. The result of the query would have to be visualized in a report under the 'GO'.
    I am using 'Reports region' Template.
    Is this possible and as I can make it?

    Moh Loay wrote:
    i am using dynamic action to set value so the page refresh and the report refresh also Your statment it not clear, usually Dynamic actions are used to AVOID entire page refresh. In your case you say that is refreshes that page!!
    What you should do is :
    - Add dynamuc actions ONLY to populate cascading LOVS.
    - Add a "go" or submit button that simple submits that page.
    - Make sure your LOVS are not select lists with submit option.
    Hope This Helps,
    Sam

  • Problems with "Submit" button on simple PDF form.

    Hi there!
    I have searched, but perhaps not searching forums correctly to find my answer as this seems like it should be easy to fix (she said hopefully).
    I have created a simple, offline PDF form for an event registration.
    I have fields all done, set it up to email back a simple FDF from the client with a Combo Box "Submit" button.
    When the client fills in the fields and hits "Submit" button, she gets:
    "The file may be read-only, or another user may have it open. Please save the document with a different name or in a different folder."
    I created this in Adobe Acrobat 9.
    Client is filling in using Windows XP.
    I have extended release, no security, etc.
    Is there something simple I am missing?
    Have been able to get this to work before.
    But now, not so much!
    Any help is greatly appreciated!
    Thanks!

    That's not normal. Do you know what version of Acrobat/Reader the other person is using? Can you post the form somewhere? If not, I'd be happy to take a look at it if you are free to email it to me at: acroscript at gmail dot com

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

  • Hide and Display submit button on the Simple search page.

    Heading 1: h1 Hide and Display submit button on the Simple search page.
    I'm trying to set the enabled property of the submit button on the simple search page. The business case is to disable the button if the VO has not returned any rows.
    The Submit button is on the page button bar.
    regards
    Abhi

    Hi,
    I have already added this in my ProcessRequest, the issue I am facing is it the submit button is disabled while I load >the page which is fine. but when I do a search and the query returns rows still the submit button is disabled.---Will nt reuired SPEL here..
    ---On go button click setsession value.
    Follow below steps:
    CO PR:*
    OASubmitButtonBean continueBtn=(OASubmitButtonBean)flowLayout.findChildRecursive("continueBtn");
    if(continueBtn != null && "D".equals(oapagecontext.getSessionValue("Flag"))
    continueBtn.setDisabled(false);
    else if(continueBtn != null )
    continueBtn.setDisabled(true);
    CO PFR:_
    if(pageContext.getParameter("Go") != null)
    oapagecontext.putSessionValue("Flag","D");
    Regards
    Meher Irk
    Edited by: Meher Irk on Mar 22, 2011 7:48 PM
    Edited by: Meher Irk on Mar 22, 2011 7:48 PM

  • Can we have one submit button for mutliple report regions querying same tbl

    Hello,
    I have a normal multiple report regions in a page with some editable in those regions, these report regions are querying the same table. Now, Is it possible to have one submit button for all the report regions to update the underlying table data?
    Can anyone please help me out with this one.
    thanks,
    Orton

    First you'll almost certainly need to roll your own - the built-in stuff is fairly basic and more than likely won't help.
    It sounds like your process flow should be something like:
    1) Person clicks button.
    2) You do a select for update in the process to get the loan id and put it in the person's queue. At this point you may want to flag that column as having been assigned so it can't be assigned again.
    3) You then forward them to the form to enter data. Personally I would create my own items and processses and forgo the built-in form stuff but you may be able to use the Automated Row Fetch. If you do your own, you just reference the objects like:
    insert into table
    values(:P1_1, :P1_2, :P1_3)Edit - Another way would be to use a regular form and insert Stop/Start Tables - so it can look like a different section, but it really is just a label. Thats another option.

  • 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

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

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

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

Maybe you are looking for

  • Itunes "quits unexpectedly" or crashes immediately. Please help

    I recently repaired disk permissions on my macbook and now itunes won't open.  It either "unexpectedly quits" or the icon in the dock just bounces until a crash report shows up.  I'm wondering if anyone knows how to resolve this problem?

  • No sound through the USB wire to my external interface.

    Hi all! Here is my problem: The interface (Roland Octa-Capture) is set as "default" in the apple preferences, AND in Logic pro, of course, but, though it works perfectly well as long as I plug a microphone in (throug a pre-amp), once I Launch the tun

  • Cost Center (Actuals or Reforecast) vs. Plan

    Hello, I know this can be done because I saw it at another client.  I would like to create a Cost Center report that displays Actuals for months that have already past, and the Reforecase for months that have not already past. For example, assuming i

  • Button for services for object not showing for FB03

    Hi, I have a created a Zcopy of transaction FB03. But the button for services of object which contains attachment list and other features is not showing up in my Z trasaction. Does anyone know the reason or the functionality behind this button.

  • Actions menu wheel image and Go button image

    Hello , In APEX 4 Interactive Reports, the actions menu wheel image and the go button are coming as html buttons instead of the wheel image and go button image. Is there a way I can rever to the old wheel img and go button . Thanks, Dippy