Submit button with autoclose

Hi Folks!
I have created a simple popup window which takes some data from the form. What I would like is to be able to submit the popup window and the automatically close it.
To achieve this I have created a Submit button and the a branch process which is fired. As my URL Target I placed the following :
javascript:window.close();
The popup opens OK, and processes everything OK. However instead of closing itself I get the "Page cannot be displayed" error.
Note, that when I use the same approach with a button without submit - the window closes OK.
Any ideas?

Just found it ;)
Instead of creating a branch just add a process (after all your other processes) with "Close popup window"
This is ready available in 2.2.1 - nice and easy!
Regards,
Pawel.

Similar Messages

  • Invisible submit button with image rollover

    I have a need to combine a rollover image with a form submit
    button. I need the submit button to not be visible except for those
    that know where to look.
    I have a database query that displays rows of data. Each row
    has a checkbox to select that item, so the data table is in a form;
    the checkbox is a cfinput. In order to pass the parameters of the
    checked items, a submit button must be used to submit the form
    values.
    My need is for the submit button to be the rollover image.
    Only users that know where to find the rollover image will be able
    to submit the list of checked form values. "Regular" users
    shouldn't be in that area of the screen.
    So, a combined rollover image submit button is needed.
    Ideas? Thanks...Rick...

    document.yourformname.submit didn't work.
    But then discovered that the href value needs to be empty (or
    "#") to work. This code works: (rollover images with the submit()
    code):
    <a href="#"
    onClick="javascript:submit()"
    onmouseover="MM_swapImage('Image9','','images/change-meeting-date.png',1)"
    onmouseout="MM_swapImgRestore()">
    <img src="images/blank-hidden-area.png"
    name="Image9"
    width="111"
    height="11"
    border="0"
    id="Image9" />
    </a>
    When, in DW, you add the rollover image, you need to leave
    the href value empty. I suppose that lets the submit button use the
    <cfform action...> value as the results page, letting the
    form values pass to the results page.
    Now, the next step is to have two different rollover images
    with submits() that point to two different result pages, while
    still using one cfform. (Two submits in one form, each submit
    pointing to a different results page.)
    ...Rick...

  • Submit button with multiple email addresses doesn't work while the same form with one email address does.  The multi email version works on windows computer.

    The email comes up when I press the "Submit" button but the email to field is blank.

    Hi,
    What is the separator character between two email addresses?  Is it a comma (,) semicolon(;) or something else?
    According to the mailto URI scheme (RFC 6068), you need to use a comma (,) to separate multiple email addresses.
    You can see the third example in the following Wikipedia page.
    mailto - Wikipedia, the free encyclopedia
    Would you double check the mailto value in your PDF form?

  • How to have a submit button with variable values

    i have a jsp form which is like
    while(itr.hasNext()){
          b=(Book)itr.next();
          int code=b.getBookCode();
           %>
            <tr>
             <tr>
                 <form action="temp.jsp" method="post">
              <td align="center"><%=b.getBookCode()%></td>
              <td align="center"><%=b.getBookName() %></td>
             <td align="center"><%=b.getAuthor().getName() %></td>
              <td align="center"><%=b.getAuthor().getAuthorCode() %></td>
              <td align="center"><%=b.getPublisher().getName()%></td>
              <td align="center"><%=b.getPublisher().getPublisherCode() %></td>
              <td align="center"><%=b.getPrice() %></td>
              <td><input type="submit" name="Submit" value="Add"></td>
              <input type="hidden" name="code" value=+*i want to get the book code here (b.getBookCode())*+>
              </form >
            </tr>
            </tr>
            <%
        %> here i want to get variable values for submission in submit button
    can anyone help
    can i use request.addheader() for this -it doesn't seem to be working always returns -1

    This inept has crossposted the question over all places. Someone else already gave the answer.
    Don't crosspost. Stick to one topic. Continue here: http://forum.java.sun.com/thread.jspa?threadID=5254517
    AmitChalwade: you find it still hard to write "u" as "you", "r" as "are" and "u r" (you are) as "your" ?

  • Customise the email submit button with custom email, cc, bcc, subject and body - almost working!!

    Hi
    I have been working on trying to customise the email submit button to custom entry email address, cc, bcc, subject etc etc
    You can use the pre-submit function on the email button
    I am using the following code:
    this.event__click.resolveNode("#submit").format = formatlist.rawValue;
    this.event__click.resolveNode("#submit").target = "mailto:"+customemail.rawValue+"?subject="+subject.rawValue+"&cc="+cc.rawValue+"&bcc="+bcc.rawValue+"&body="+body.rawValue;
    THis is picking up values from a dropdown and a series of text boxes the values of each area.
    This works beautifully except for the subject area. For some reason teh subject area copies the entire srting from the subject onwards, all other areas (cc & bcc & body) all only copy the value assigned to its function.
    Any thoughts
    Feels like a bug in the coding but it may also be intentional.
    Thanks

    I believe that there was a bug logged for this issue, here is a workaround.
    Add a regular button to the form used to execute the EmailSubmit button  (you can make the EmailSubmit button invisible)
    On the click event of the "newly added" regular button add your script
    NameOfEmailSubmitButton.event__click.resolveNode("#submit").target = "mailto:"+customemail.rawValue+"?subject="+subject.rawValue+"&cc="+cc.rawValue+"&bcc="+bcc.rawValue+"&body="+body.rawValue;
    NameOfEmailSubmitButton.execEvent("click");

  • EMail Submit button with mailto: based on form data

    Based on form data, I would like to have an email button that sends mail to the email address identified in the email field. Obviously this can change, how would one go about programming a button to send to email based on field data?
    Thx...
    /cw

    Hi Chris,
    Yes this can be easily done. I gathered the following solutions from various threads and so I am not claiming any originality here...
    Set up a textfield "Email", with a tooltip telling users to separate email addresses with a ";".
    Next set up a regular button with the following Javascript in the click event:
    var email = xfa.resolveNode("form1.#subform.Email").rawValue;
    var subject = "Specify your subject line here"
    event.target.submitForm({cURL:"mailto: "+ email +"?subject=" + subject +"&body=You can also input some standard text to appear in the body of the email.",cSubmitAs:"PDF",cCharset:"utf-8"});
    You might want to put an if statement that if the "Email" textfield is blank/null that an app.alert comes up informing the user to input at least one email address.
    We took it a stage further on one of our forms. We set up three checkboxes with people's names who are regularly sent the form (nod and cc1 and cc2) and then a textfield "additional" for additional addresses.
    Each checkbox had an associated Textfield (EM1_email, cc1_email, and cc2_email) that were invisible. Each checkbox had similar Javascript in the mouse up event:
    if (this.rawValue == 0) {
    EM1_email.rawValue = null;
    else {
    EM1_email.rawValue = "[email protected];";
    Then we set up another invisible textfield (Email) which had the following Formcalc in the calculate event:
    if (nod.rawValue == 0 & cc1.rawValue == 0 & cc2.rawValue == 0) then
    $ = null
    else
    $ = Concat(EM1_email, cc1_email, cc2_email, additional)
    endif
    This basically pulled the email addresses from the ticked checkboxes and the additional user inputted email addresses into one text field. From there the regular button with the script above send the email. This speeded up the process for regular reciptents.
    If you search the forum for topics such as cURL:"mailto: you should see lots of other examples.
    Good luck,
    Niall

  • How to use email submit button with webmail; not a desktop email client

    We've made a form that will submit data via an xml attachment to an email. It was all tested as fine (using Adobe Reader 7...) and has been deployed - DISASTER.
    People using Adobe Reader 8 cannot choose to save the xml file. AR 8 just opens up their default email client. If they use webmail and it's not on the list of default email clients (IE/Tools/Options/Programs)then we don't seem to be able to get the xml data out.
    How can you get AR 8 to give you a choice of what to do with the xml data when a user clicks the Submit by email button? Just like the email client choice in AR 7!!!! Please, if anybody from Adobe sees this, help us...

    Did you ever get a solution to this problem. I have several clients who use internet email and it always worked with earlier versions of reader because it would display the "Select Email Client pop up.
    Please let me know.

  • Submit button with delivery receipt?

    Hi, I would like to know if it is possible via javascript, to notify the form sender that the form has been well received?
    I'm not sure of which function to use though.
    Thank you for your help

    I am indeed sending the form via mail through a mailDoc function, and that was what I was looking for as answer.
    This confirms what I was thinking about,
    Thank you Gilad

  • Can not keep drawable signature option in reader on a form with a mailto: submit button added.

    I hope someone has run into this.  I have acrobat 11.0.10 to create fill-able forms and reader 11.0.10 to view and fill them.  Do to the nature of the forms a drawn signature is required and is available right up until I add a submit button with a mailto: action.  Then all that is available in the reader is the digital certificate.  I should add that I save the form without reader extensions.  Is there a way to add the auto-adressed mailto function for the person filling the form and still keep the drawable signature option for signing?

    - is it possible to have more than one form on the page. If so how do
    I determine which form is submitted isDefined('form1'),
    isDefined('form2') does not seem to work,
    /quote
    Yes.
    - if there are two buttons in the form how can I tell which one was
    preses as both seem to return true when tested with isDefined()
    /quote
    Give the buttons different name attributes. On your action page check
    with StructKeyExists(Form, "name_of_first_button") and
    StructKeyExists(Form, "name_of_second_button") which one was pressed.
    Mack

  • How do i make a submit button work on mobile with my PDF

    I do not want to use the Adobe Forms Central. I have a client that wants a PDF on their mobile site to be readable and editable on an iPad. The submit button does not work. Is there a work around or another means to make this work. I realize the PDF form can be emailed via the iPad, but not all the people or "customers" know the email address to send to, so how can i make this work. Any suggestions or anyone else encounter this issue? I do not want to have to ask my client to ask his customers to go purchase software, when they should be able to just download adobe reader to fill out the form and send it like we can do on a regular desktop.

    I created the PDF and at the end placed the submit button with the following actions (screenshots included):
    Setting for the Submit form:
    Submit button at the bottom of the last page of the application:
    Maybe I have it all set up incorrectly, but from all that I have read it works fine on the desktop, but when the iPad is used, the submit button becomes inactive. I thought there could be some work around to make it work other than the "actions" or javascript, but I have also seen other forms that have javascript work on the iPad, so it has me totally confused.
    Thank you.

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

  • How to distribute a form with multiple submit buttons?

    I have a form that has multiple submit buttons depending on the information that is being entered and then who the information should go to.  When I try to disbribute the form, I get an error message stating the following, "Acrobat is unable to distribute this form because it contains multiple submit buttons with different formats or return URLs."  Is anyone able to let me know how I can distribute the form?

    Sounds as if you need your own web script to process submissions - written by an experienced web programmer (I very strongly recommend someone familiar with all the latest security weaknesses, and not a project for anyone else). Your needs are (it seems to me) too complex for Adobe's automatic system.

  • Working with HTTP-POST Submit Button

    I've created a form that uses a submit button with HTTP-POST.   I've tested this against a script that displays the fields, however, I'd like to table the posted data to SQL.   Can someone show me some code to parse this data with CGI, or PHP?

    Yes. At some point you will need to prarse the requests and treat them differently - because a POST is NOT the same as a GET.
    Anyway, just place the variables or script-links to the variables in an HTML Form.
    Very easy stuff.

  • Can I get a Submit button on a form that allows payments?

    My form is set up to allow customers to pay using PayPal, by check or by deduction from pre-paid account. When choosing to pay by check/deduction, I would like the "Submit" button to show up at the bottom instead of the "Proceed to Checkout". If paying by PayPal, I still want the "Proceed to Checkout" button. Is this possible? Everything is working fine, we're just having trouble with folks who are paying by check (or having amount deducted from their pre-paid account) shying away from clicking the "Proceed to Checkout" when they have indicated payment by check or pre-paid account deduction.
    Saw this in another similiar posting that has been closed but I saw no solution. Same question I am asking above.
    rather than the 'Proceed to Checkout' button showing, if I selected 'Check' that the button would show as a 'submit' button, with the the text 'submit' rather than 'Proceed To Checkout'
    Message was edited by: bandgeek

    Hi;
    I really apologize this took so long to respond to, this "sub-forum" wasn't being monitored daily like our main forum (we are resolving that now).
    No, this currently is not possible.  It has been requested as a feature, we are currently working on a Form for users to submit such requests and hope to have that posted soon.  For now we take note of these requests from the Forums.
    Thanks,
    Josh

  • How can I add more than one submit button in a jsp without use of javascrip

    I want to add more than one submit button in a jsp without use of javascript

    you can do add multiple submit button with this way
    <input type="submit" value="Previous" />
    <input type="submit" value="Next" />
    <input type="submit" value="Finish" />

Maybe you are looking for