Submit form through hyperlink

Hello,
Problem is....... i need to submit form through hyperlink.
the following is my code. when i executed it i am getting the same value for all the input buttons in the for loop. So, when i click any hyperlink i am getting only one output.
can u guide me in this issue.....its urgent...........
<form name='myform' action="items.jsp" method=post>
<%
while(rs.next())
     String s=rs.getString(1);
%>
     <input type=hidden value=<%= s %> name=nnnn >
     <%= s %>
     <br>
<SCRIPT language="JavaScript">
function submitform()
document.myform.submit();
</SCRIPT>
<%
out.println("</form>");
Thanks in Advance
Sri

i'm not sure but i think you want something like this...
function submitForm(selectedValue) {
document.myForm.myInput.value = selectedValue;
document.myForm.submit();
and put one of these in your code
<input type="hidden" name="myInput">
and in each of you links do
<a href="javascript:submitForm('<%= whatever %>')">link</a>
get it?

Similar Messages

  • Error when I "submit Form" through Outlook 2007

    We have a interviewer who is trying to use a new form we created. When she hits the "submit form" button she gets the normal prompts and then a email is placed in her outbox (using Outlook 2007). However, after a few moments she receieves an error code saying that the object can't be found. This did not happen with forms in previously versions of Acrobat. Any help would be appreciated.
    Thank you!

    Hi mattmclaughlin
    Please see the below KB Document from Microsoft on the same issue : http://support.microsoft.com/kb/2020427

  • Need Help: Submit form through email

    I need to submit my form to an email address on single click of a button.
    The submit type can be either XML or PDF. But i should neither get any warning nor it should open the Email Client.
    And everything should happen within Adobe Reader 9.
    Is this possible?
    Thanks in Advance,
    Nith

    Hi Nith,
    I saw this question and was interested in what sort of database setup you've got etc. Im a bit new and was just starting to explore how or if you could establish a database to take and store  the information directly from the forms
    I know this is a bit off topic.... but any pointers would be appreciated. I have CS4 master suite (no other livecycle products or budget for them though) and Office 2007.  
    I had been using a custom xml parser to pull the info and put it into target files but this has no storage/reuse potential and is getting real "clunky" so im keen to learn about databases and livecycle.  
    cheers

  • Unable to submit form through Windows XP Home edition

    Hi All Gurus,
    I am facing a strange problem with Windows XP Home edition users. We are mailing a survey form having some radio button, textarea, text box for each question asked and "Submit" button. When the user opens the mail, fill the survey form and press the submit button the form disappears, whereas users of other operating systems are able to submit the same form.
    Can someone help me urgently.
    Thanks
    Manu

    You should also be aware that Microsoft is facing a lot of pressure to close security holes in Outlook Express. One such hole is the ability to "execute" programs that are contained inside emails.
    Being able to submit a form directly from the email itself is one such potential security problem. For example, I could write a JavaScript routine that looks for files on the user's hard disk and mails that file as soon as the email itself is opened, by using the onload( ) property. Similarly, it is also possible to deposit cookies.
    I realize you need to solve the problem now, but at some point when it is convenient to do so, you will need to sit down with the rest of your team and think about alternative ways to send people surveys.
    Your survey would not work for me, despite the fact that I'm not using Windows XP HE, because my email program will not execute any HTML, it just simply displays the tags. I configured it that way to avoid security problems, namely trojan horses and spyware, and more and more people are disabling their email programs every day. You may just have to settle for emailing people a hypertext link to a web site with the form on it.

  • Change filename prompted when submit form by email

    My form has a submit by email button for users to submit the filled form through email(attached as pdf). Upon clicking the submit button, I want the pdf attachment to be in a customized filename (eg:YYYYMMDD_form1_txtfield1.pdf), or the least if user choose to submit using external webmail and prompted to first save the file, the filename(on the Save As dialog) will automatically be set to the customized filename.
    Is this possible? or Is there any other alternatives? I had went through a number of forums/articles on this but I did not find the solution.
    Thanks loads.

    The send pdf in an email will save the fiel as is in a temp folder with the name of the PDF that already exists. If you want to change that name you will have to do a file save operation. For security reasons you cannot automate the file save without the user's knowledge (they have to click OK). I do not know of a way to seed the SaveAs dialog with the filename that you want.
    Paul

  • "Submit Form" button automatically created when opening form in non-adobe program

    I tried browsing the forum for a solution to getting rid of this annoying automatic button but got nothing. It gets generated on the body of the form (top right) when I publish for distribution using any method for collection. I'm using pdf expert 5 to fill and submit forms because adobe reader doesn't do what I need how I need it. Everything is perfect except for that annoying submit form button that specifies submitting by email because 'user is not using reader or acrobat version whatever'.
    Anyone know how to get rid of this button?
    Thanks!

    Yes, that is correct.
    I did not manually add this button, so I am assuming it was somehow automatically created.
    It worked great up until now that I need to change the "To:" email address.
    I've look through the XML code associated this this email address and changed it every where I could find it, but it still hasn't changed my results.  So, I have no idea how to change this and as stated above, if I create a new form it automatically sets it up to be sent to the wrong email address.  Not sure why or how to change it?
    Let me know if you need further info to help me out.
    Thanks again

  • Where does the "Submit Form" button get created and how can I change the associated email address?

    I've created a pdf form using Adobe Live Cycle ES 8.2 and it has been working fine.  Now I need to change the email address it gets sent to when the user clicks on the "Submit Form" button.
    How can I change this email address?
    Thank you in advance

    Yes, that is correct.
    I did not manually add this button, so I am assuming it was somehow automatically created.
    It worked great up until now that I need to change the "To:" email address.
    I've look through the XML code associated this this email address and changed it every where I could find it, but it still hasn't changed my results.  So, I have no idea how to change this and as stated above, if I create a new form it automatically sets it up to be sent to the wrong email address.  Not sure why or how to change it?
    Let me know if you need further info to help me out.
    Thanks again

  • Submitting PDF form through email

    I created an order form PDF a year ago (with Acrobat Pro 8) for a client's website with a button to submit the form through email. The customers can fill out the order form in Acrobat Reader 8 and email the PDF to my client's email. Now that doesn't seem to work anymore - an illegal operation message comes up. I've changed the action for the button to submit the order form as a FDF file but the form data is not found once the email is sent. I've found the FDF Toolkit but have no idea what to do with it. Is there a simpler way for customers to fill out the form and email it to my client?

    zorro248 wrote:
    Is there a simpler way for customers to fill out the form and email it to my client?
    Sure. Just enable the form so Reader users can save it when it's finished then instruct them to do so and attach it to an email.

  • Unable send ADOBE form through email as attachment

    Hello experts,
    I was trying the [tutorial |https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ee8a84ea-0c01-0010-5691-accfb0a172ed] on ADOBE interactive form through GP.
    I am not able to send a form as an attachment as specifies in the document.
    I have checked for all the required settings mentioned in the document and all seems to be ok.
    Can anyone please provide a ray of help on how do I enable a ADOBE form to be passed as an attachment through email.
    Thank you.
    Ashutosh

    Hi,
    just use a "Standard button", select it and go to the "Object" -> "Field" tab. Set the control type to "Submit". Go to the "Submit" tab. Set the submit format (e.g. PDF) and set the URL to "mailto:<receiver's email address>".
    This will work fine without any JavaScript.
    Take care,
    Thomas

  • How to close infopath form through code?

    Hi All,
    How to close infopath form through code, thanks in advance!

    Hi Sam,
    Please check if the articles below can be help:
    http://www.bizsupportonline.net/browserforms/programmatically-submit-infopath-form-sharepoint-send-email-close-form.htm
    http://www.bizsupportonline.net/blog/2009/01/how-to-programmatically-run-code-close-infopath-web-form/
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Auto Submit form

    Hi there,
    I've been looking through the documentation and forum, but so
    far unable to find what I am looking for (apologies if I have
    simply missed it!)
    I'm looking for a tutorial on how to submit form data as the
    form is filled out. ie. some kind of onblur technique in each form
    field. I'm not using this for any sort of covert sneakiness. Simply
    for an admin page to process bookings quickly. ie. changing seating
    quantity for a concert booking system.
    Is this possible with Spry?

    Just add this to the form element:
    onblur="document.myForm.submit();"
    myForm would be the form name/id
    Ken Ford
    Adobe Community Expert - Dreamweaver
    Fordwebs, LLC
    http://www.fordwebs.com
    "the_aliator" <[email protected]> wrote in
    message news:g0c6eq$ble$[email protected]..
    > Hi there,
    >
    > I've been looking through the documentation and forum,
    but so far unable to
    > find what I am looking for (apologies if I have simply
    missed it!)
    >
    > I'm looking for a tutorial on how to submit form data as
    the form is filled
    > out. ie. some kind of onblur technique in each form
    field. I'm not using this
    > for any sort of covert sneakiness. Simply for an admin
    page to process bookings
    > quickly. ie. changing seating quantity for a concert
    booking system.
    >
    > Is this possible with Spry?
    >

  • Evaluated Receipt Settlement (ERS) Smart form through the MRRL Transaction

    hi all,
    i am handling a smartform .
    How can i run my Evaluated Receipt Settlement (ERS) Smart form through the MRRL Transaction  ?
    what fields should be put in the Nast -objectkey?
    if possible Please Mail to me in my id <REMOVED BY MODERATOR> any documentation available for the given Transaction(MRRL)
    Thanks & regards,
    Cheenangshuk
    Edited by: Alvaro Tejada Galindo on Feb 28, 2008 11:45 AM

    Hi,
    ERS Definition: - Procedure for settling goods receipts automatically. When you use Evaluated Receipt Settlement (ERS), you agree with the vendor that the latter will not submit an invoice in respect of a purchase order transaction. Instead, the system posts the invoice document automatically on the basis of the data in the purchase order and goods receipts. This eliminates invoice variances.
    Uses: -
    - SAP recommend that you implement ERS only if you and your vendor have a clear agreement on the applicable conditions and you continuously update the purchase orders in the system.
    - The system determines the invoice amount for the relevant ordering transaction from the prices entered in the PO, the terms of payment, the tax information and the delivery quantity entered in the goods receipt.
    - ERS also generates credit memos: If an invoice has already been posted for a goods receipt and a return delivery has since taken place, the system generates a credit memo for the quantity returned.
    Advantages: -
    Evaluated Receipt Settlement (ERS) is particularly suitable for creating settlement documents at regular intervals.
    ERS has the following advantages:
    - Purchasing transactions are closed more quickly.
    - Communication errors are avoided.
    - There are no price and quantity variances in Invoice Verification.
    In test mode, the system can issue a list of goods receipts that can be settled and goods receipts that cannot be settled. The system makes no postings, it only lists the invoices selected.
    Refer following links for more details;
    [Evaluated Receipt Settlement|http://help.sap.com/saphelp_erp60_sp/helpdata/en/a8/b99f58452b11d189430000e829fbbd/frameset.htm]

  • Submit form using web based email service

    I regularly get sent forms by my printers which I fill in to approve print jobs. There's a submit button the forms which has always nicely opened up Mail (Mac OS X) in order to send a data file that the sender can read. However, I've just recently started using a different email client (Postbox) and I get this error from Adobe Acrobat...
    The SendMail doesn't know how to talk to your default mail client.  Please select a different mail application to use.
    I can't find a way to change the settings though. I used to be given the option between sending via a desktop or web based email service but a while ago I ticked the box to 'not show this message again'.
    Anyone got any ideas how I can maybe use Gmail or similar to send these forms?
    Cheers,
    Jon

    Dear Frances,
    The "Submit by Email" button enables to submit your form data in two modes.
    1) Default Email Application (MS Outlook)
    2) Use Webmail
    You can use option 2 to submit form data through Webmail.
    Thanks,
    VJ

  • Infopath: Rules run before Code...So Can we close the form through Code?

    Hi,
    I have a form with a couple of buttons. Clicking on any of the buttons first executes the RULES and then jumps to execute the code in the FormCode.cs file for the button click event. However, if I have "Close the Form" as one of the Rules for the button, the code does not execute. So, is there a way that I can close my Infopath fom after executing the code instead of closing from the RULES? Also "The form has been closed" is the message which pops up after closing form through rules. Can we redirect to the form library instead of showing this message?
    I tried to execute everything through code in FormEvents_Submit. It works fine if I have a single submit button. But how would i differenciate if there are multiple buttons like Approve, Reject etc.
    Thanks !

    Hi Aanu,
    Thanks for the reply.The proposed solution in the thread is to use;
    this.Application.ActiveWindow.Close();
    or
    thisXDocument.View.Window.Close(true) in order to close the form.
    Both of them don't work when I try to use them in Visual Studio. It complains of a missing namespace.
    Did this approach work for anyone?

  • CALLING FORM THROUGH REPORTS

    HI....
    WIHS U A VERY HAPPY NEW YEAR..
    I HAVE DEVELOPED A REPORT (DRILL DOWN) AND I WANT TO CALL RELATED FORM THROUGH REPORT.. IS IS POSSIBLE IF GIVE ME AN EXAMPLE
    REGARDS
    SANTOSH RANE
    [email protected]

    SANTOSH,
    REPORTS RUNNING ON CLIENT/SERVER CAN USE THE REPORTS RUN_PRODUCT() BUILT-IN, REPORTS RUNNING ON THE WEB CAN USE A HYPERLINK TO CALL FORMS. NOTE THAT USING HYPERLINKS WILL NOT IMPLICILTY PASS TEH DATABASE CONNECT BUT AS A URL PARAMETER WHICH SEEMS TO BE UNSECURE. THEREFORE I SUGGEST TO USE FORMS AND REPORTS 9i AND SINGLE SIGN ON.
    FRANK

Maybe you are looking for