Submit Button Function

I can't get my form to display the data input after clicking on the submit button. Here's what I'm trying to do. I've created a super basic form in html and it's displaying properly in IE the way I want it to. The form consists of drop down boxes for content selection. At the end of the form, I have a submit button that I need the content selected on the form to display nicely on a page to be utilized for copy and pasting the information into our database. I probaby just badgered that and as you can tell, I'm not a programmer, but trying to dabble around with this for my networking group at work. This template (form) will not be posted to a web server anywhere as will be a local client tool. Therefore, I don't want the submit function to redirect to a webpage to display the info, I need it to direct somewhere locally on clients system so he/she can copy and paste the data into our database. Would love it to populate in notepad or just direct to an offline IE page. Can anyone help with this kind of submit function?
Thank you!
binaryops

Northstar,
Since you want to use jQuery (WooHoo!), you could approach it like this:
1. Add class to the button template table. I chose to use the label for the button prefixed with btn. so submit will have an id as btnsubmit.
<table class ="btn#LABEL#" style="display:inline;margin-left:6px;" cellpadding="0" cellspacing="0" border="0" summary=""><tr>
<td style="width:9px;"><a href="#LINK#"><img src="#IMAGE_PREFIX#themes/theme_3/button_left2.gif" border="0" height="25" width="11" alt=""/></a></td>
<td class="t3ButtonHtmlMiddle" nowrap="nowrap"><a href="#LINK#" class="t3ButtonHtmlMiddle">#LABEL#</a></td>
<td style="width:9px;"><a href="#LINK#"><img src="#IMAGE_PREFIX#themes/theme_3/button_right2.gif" border="0" height="25" width="11" alt=""/></a></td>
</tr></table>2. Add an on click event to all anchor tags within that table:
$("#btnsubmit a").click(function(){
     alert('On click event handler...');
     fn_map('submit');
   });cheers,
Tyson Jouglet
Edited by: Tyson Jouglet on Apr 24, 2009 10:52 AM

Similar Messages

  • Acrobat Form Submit button not working with Reader

    I created a form using Acrobat Pro 9 with a submit button function. When I email the form to users they are only allowed to submit the form if they have Acrobat Standard or Pro. For users that have Acrobat Reader they are able to open complete the fields and print the document but are unable to use the submit function. They receive the following message "This operation is not permitted". 
    I need all Adobe users including Reader to be able to submit this form. How do I fix this?
    Help is greatly appreciated!!

    You need to Reader-enable the form in Acrobat by selecting: Advanced > Extend Features in Adobe Reader
    This is because the form needs to be saved before it is attached to an email, and Reader normally cannot save a modified form. Reader 11 is able to save a modified form, however.

  • What is the purpose of Destination Function on Submit Button?(Doesn't work)

    Hi Gurus,
    There is a property "Destination Function" on Submit buttons.
    What is the purpose of this field.
    I tried setting some values here expecting following behavior in order:
    1. Process Form Request will get executed.
    2. User will be navigated to the OAF page related to the Destination Function.
    Destination Function property probably point to setInvokeFunction method of the OASubmitButtonBean.
    Please advise on this.
    Thanks and Regards,
    Prince

    Question 2. What is the purpose of View Instance on Submit Button? Is it there for BoundValues? Any examples how can we use this?
    Question 3. Related to Question 2, What is the purpose of View Instance and View Attribute on Button?

  • How do I add a functional "submit button" to a pdf form in Adobe Acrobat Pro XI ? I created the pdf form in Adobe Forms Central.

    How do I add a functional "submit button" to a pdf form in Adobe Acrobat Pro XI ? I created the pdf form in Adobe Forms Central. It's for an online Diet Questionnaire. After people complete the form I'd like them to click "SUBMIT" and the completed form will be emailed to me.

    This can be a bit confusing because Acrobat 11 comes with the desktop app that allows you to create simple PDF forms without having a FormsCentral account. Some people find this helpful, but you need to understand that when you generate the PDF form, it is Reader-enabled by Acrobat. In order to edit the form further in Acrobat, you have to create a non-enabled copy of the form. You do this in Acrobat by opening the form and selecting: File > Save a Copy
    and opening the copy. It is not opened automatically.
    You can now add a button and set it up to submit by email, either using a "Submit a form" action or the submitForm JavaScript method. You can set it up to include just the form data or the entire PDF, and will want to use a mailto type URL. Submitting the form to the FormsCentral server has a number of important advantages over email (much more reliable, more secure, etc.), so you might want to consider it.
    If the form needs to be saved with Reader versions prior to 11, then you will need to Reader-enable the document. In Acrobat 11 you do this by selecting: File > Save As Other > Reader Extended PDF > Enable More Tools

  • Two functions on one submit button??

    Is it possible to have a button perform 2 functions?
    I would like to have one single button that when clicked will submit the form as pdf to an email address and also print the form to the default printer.
    I have been able to have the button working for email OR print but not for the two.
    When I add the JS code to the submit button to print the form the code is ignored.
    The email dialog box shows and I can then send the email but the pdf is not printed.
    Any help is appreciated,
    FayeC

    use this in a button click event.<br />//capture present XML in a variable<br />var printXML = xfa.data.saveXML();<br />//do the following if you want to print part of the XML<br />var startAt = printXML.indexOf("<SendXML");<br />var endAt = printXML.indexOf("</SendXML");<br />printXML = ""+printXML.substring(startAt, endAt+11)<br />//11 is length of the XML tag may have to adjust this based on<br />//end results.<br /><br />var subj = "email with XML and PDF";<br />//following composes email with PDF attachment<br />event.target.submitForm({cURL:"mailto:[email protected]?&body=following is the final XML<BR>"+printXML+"<BR>&subject="+subj,cSubmitAs:"PDF",cCharset:"utf-8"});<br /><br />Good Luck,<br />Sekahr

  • 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

  • Submit Button error - Data Connection failing

    I am the form designer and am currently testing a new form I have created, however there is an error with my submit button which Saves the form to SharePoint, I receive the following error message:
    InfoPath cannot submit the form.
    An error occurred while the form was being submitted.
    The form cannot be submitted to the following location: http://servername/siteA/siteB/siteC/FormLibrary/FormName.xml
    The file: http://servername/siteA/siteB/siteC/FormLibrary/FormName.xml" is checked out for editing by DOMAIN\MyUserName.
    The operation completed successfully.
    The form is not checked out to me, or open by anybody else, also check out functionality is not forced on this SharePoint library.
    On searching forums I have read about using friendly server names and I am using the server's name in the URL, i.e.
    http://servername instead of the alias
    http://intranet - this had solved the problem in other forms, but not this one.
    Looking closely at the rules on my submit button, the following actions occur:
    1st rule checks the selection of certain fields, if the conditions are right it will set the values of 3 different fields.
    The 2nd rule saves to SharePoint using a data connection (please note this data connection works fine on different submit buttons in different views). The second rule also closes the form.
    To test where the error occurs I added a series of actions to display messages, and the problem is definitely on the data connection rule.
    The data connection is to save to a Sharepoint library, using a field called "filename" as the file name. The data connection allows overwrites. The file name is set the first time a file is saved (it has a condition which checks a field which
    gets set upon any save event - if this field is set to 0 filename gets set and this field gets set to 1 - because this field is now equal to 1, the filename field will nwever get set again).
    I have 2 views on the form, one named phase 1, the other named phase 2. When the custom submit button is pressed on the phase 1 view, my data connection works, but on the save 2 view, the exact same data connection fails with the error message above.
    I am using Windows 7, InfoPath 2010, SharePoint 2010, InfoPath filler form).
    In Windows XP, for a different user, the error messaeg is a little different, and the form does actually save:
    InfoPath cannot submit the form
    An error occurred while the form was being submitted
    The form cannot be submitted to the following location: http://servername/siteA/siteB/siteC/FormLibrary/FormName.xml
    The file is in use by another application or user.
    As I said the form does actually save its changes but still throws up this error message which will be very confusing to end users.
    I've exhausted all avenues that I know of to find the cause of the error messages and I'm at a loss, please help!
    Thanks,
    Ben

    bgvball14. I found that the error was down to the friendly name / server name issue. I have made sure that everything uses the friendly name e.g.
    http://intranet instead of the servername e.g.
    http://servername. I made sure the data connection and all options in the publishing wizard are set to the friendly name. There were still some forms that didn't work though - this was because when trying to fix this problem I had switched several times
    between using the friendly /server names and some forms were looking for the template with the server name (these didn't work), other forms looked for the friendly name (these did work).
    What I did was open my form library in windows explorer view and then drag each form into Notepad so I could see the source code. On the top two lines I could see the reference to the template and in some cases the template weas referenced using the server
    aname, which I changed to the friendly name and this worked. I did have to check every form in the library. Basically, everything should reference the friendly name (e.g.
    http://intranet.
    Ben

  • Submit Button In Web Dynpro Layout not working.

    Hi All,
             I have integrated an adobe form in my web dynpro application.According to my requirement the view of screen should change when the user clicks on submit button.So I have given the submit button as one of the UI element in my WD object along with the form.But when I click on the submit button the functionality doesnot work.
    The same submit button works when there is no adobe form integrated in my WD application.
    Please let me know what needs tyo be done so make that submit button work.
    Thanks and Regards,
    Sarang

    Sarang,
    Lets go step-by-step.
    1. Create two views in your applications lets say the names are View1 and View2.
    2. Goto Diagram View of the Window in under Windows node in your Web Dynpro Explorer in NWDS.
    3. Create Inbound and Outbound plugs for View1 namely inbView1 and outView1
    4. Repeat the same for View2. So names will be inbView2 and outView2.
    5. Create a navigational link between the Vies by creating a link from outView1 plug to inView2 plug.
    6. Goto Layout tab for the View1. This is where you have embedded the Interactive form element.
    7. Set the displayType property to native.
    8. Under Events there will be onSubmit method, craete a new method called navigateToView2 and click Go. This will take you where you can implement your logic.
    9. Fire the outbound plug of View1. See following code snippet:-
    public void onActiong navigateToView2(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActiongotoView2(ServerEvent)
        wdThis.wdFirePlugOutView1();
        //@@end
    10. Edit the Interactive form, it should open Adove LiveCycle Designer.
    11. Drag-drop Submit button from WD Native library ontot the form.
    11. Don't modify anything and check if you see below code snippet in the Editor.
    // DO NOT MODIFY THE CODE BEYOND THIS POINT - 705.20051114114126.253659.250577 - SubmitToSAP.xfo
                          ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
                          // END OF DO NOT MODIFY
    12. Now whenever you click submit button on the form, what it does is that it makes call to WD framework and the onSubmit action handler is called where you have written the code to navigate to View2.
    Chintan

  • REP-50134 occurs when using the submit button on the Reports Parameter Form

    Good Morning,
    I get the "REP-50134: Cache subitem reports does not exist" error after clicking on the Submit Button from a Reports parameter form.
    I am using Forms/Reprots 9i.
    Using the source code given in the Whitepaper 'Oracle Forms Services - Using Run_Report_Object() to call Reports with a parameter form', all works well when paramform=no, but when I have a Form print a report with paramform=yes, the parameter form appears correctly, but generates the error after clicking the Submit Button.
    Any inputs as to causation or possible places to look to solving this problem would be greatly appreciated.
    Thank you

    Hello and thanks.
    The value in the tag is <form method=post action="reports?">
    Looking at this I suspect my problem is related to this setting. I am trying to follow all the instructions in the White Papers but they are a little confusing as they are not all exactly the same. Each attempts to explain a specific functionality without regards to the whole.
    For instance I believe I need to have the variables P_ACTION, P_USER_CONNECT and P_SERVER_NAME in the report being called and then add a Before Parameter Form trigger to reset the values. But this seems to duplicate and override what has already been sent via the REPORT_OTHERS property. It is a tad bit confusing.
    Can you confirm?
    Thanks for any clarification you can provide.

  • Can I have multiple submit buttons on the same form?

    Hi!
    I'm creating a web page that allows the user to build a mail filter, and I would like to have to submit buttons, one to add more fields to the filter and another one to save the filter... I could insert the two buttons on the, but I don't know how to distinguish them while doing the process of the form on a jsp page. Any ideas?

    You can create additional submit buttons using Javascript buttons:
    <input type='button' value='Add Fields'
    onClick='this.form.action="/servlet/AddFields";this.form.submit()' />
    <input type='button' value='Save Filter'
    onClick='this.form.action="/servlet/SaveFilter";this.form.submit()' />
    The value of "onClick" is a block of Javascript, so you can all a function to validate the form before submitting, etc.
    Mike W.

  • How to use multiple submit buttons in jsp form

    hello dextors,
    Im using a jsp page which have got some 'n' no submit buttons according to the Iterator ..each iterator display a row contains few fields plus submit button ..ex., If ' n' rows means 'n' respective submit buttons..the problem here is when i click any of the submit button only the value of the first row goes
    to the other jsp page..no matter wat ever button I click only first row goes..
    remember the page displays all the rows correctly and though the values of submit button are also different it gives the same result...
    what could be the reason please help it out...
    my jsp page contains
    <%@ page language="java" import="java.util.*" %>
    <%@ page language="java" import="java.io.*" %>
    <form name="frmChangeCorrection" method="post" target="childwindow" action="popup.jsp" >
    <body>
    <%
    RFTrackerDAOFactory factory = new RFTrackerDAOFactory();
         DailyDataDAO dailyDAO = factory.getDailyDataDAO();
         String month = request.getParameter("month");
         String year = request.getParameter("year");
         String empNo = request.getParameter("empno");          
         Collection coll = dailyDAO.getMonthyEmployeeData(empNo,month,year);
    Iterator iter = coll.iterator();     
    %>
    <div align="center">
    <center>
    <table border="1" width="75%" bgcolor="#B6C7E5">
    <tr>
    <th width="11%">EMPNO</th>
    <th width="30%">EMPLOYEE NAME</th>
    <th width="11%">DATE</th>
    <th width="11%">IN TIME</th>
    <th width="11%" >OUT TIME </th>
    <th width="15%" >TOTAL HRS</th>
    <th width="11%" >MODIFY</th>
    </tr>
    </table>
    </center>
    </div>
    <%
    int count=0;
    while(iter.hasNext())
         EmployeeData data = (EmployeeData)iter.next();
         String str=data.getDuration();
         String str1= str.substring( 0, 5 );
    count++;
    %>
    <div align="center">
    <center>
    <table border="1" width="75%" bgcolor="#B6C7E5">
    <tr>
    <td width="11%"> <%= data.getEmpNo() %> </td>
    <input type="hidden" name="empno" value="<%=data.getEmpNo() %>">
    <td width="30%"> <%= data.getEmpName() %> </td>
    <input type="hidden" name="empname" value="<%= data.getEmpName() %>">
    <td width="11%"><%= data.getDate() %> </td>
    <input type="hidden" name="date" value="<%= data.getDate() %>">
    <td width="11%"><%= data.getInTime() %> </td>
    <td width="11%" > <%= data.getOutTime() %> </td>
    <td width="15%" > <%= str1 %> </td>
    <td width="11%" > <input type="submit" name="Change" value="<% =count%>" onclick="popupResult()" >
    <input type="hidden" name="Change" value="<%=count%>" >
    </td>
    </tr>
    </table>
    </center>
    </div>
    <%
    %>
    </form>          
    </p>
    </table>
    </body>
    <script>
    function popupResult(){
    window.open('about:blank','childwindow', 'height=300,width=300');
    </script>

    It is assumed that one submit button will function for a form..if you want more that one submit form try to build as many forms as u need and put the submit inside that
    that will cure your problem
    and y do you want to create so many submit buttons.. instead you can make use of select button

  • Using a submit button, how can I include a data key and a message in the body of the email??

    I have a form that I have created in LiveCycle with a submit button to have the completed form emailed to a specific person. I have it set up with a message in the body of the email, but I am looking to add an additional message based on the results of one of the fields in the form....is this possible without major script writing?
    I am not a programmer, but willing to learn some script.

    softwater wrote:
    ...and costs $14.99
    Yep! And if you absolutely need (or think you need) that functionality, it is worth every penny.
    As Don already pointed out, exactly what the recipient sees will depend on how they've set up their machine and what unnecessary 3rd party apps they might've installed to display attachments the way they want.
    In theory, that is true. In practice, Attachment Tamer will cause more of your messages to show up as plain-jane icons on the other end. The problem is, after all, people running Outlook 2003 and 2007. These people likely aren't doing many system modifications.
    If I were you, I'd use the free solutions provided above, save my money and let my recipients decide how they will handle their mail.
    I completely agree.

  • How to clear the data in my page after user enter submit button

    hi......
    how to clear the data's in my page after user enter submit button. Actually while pressing first time itself the data is uploaded in database.

    Hi Nazeer,
    Instead of doing it on the same button better create a separate button for this functionality, As per my understanding you want to clear these fields to create new record so that you can enter a new record so for this you just need to insert a new row in VO.
    Still if you want to do it on the same button then you need to put the check that particular record is not dirty if it is not then create new record else create new record.
    One more thing if you will clear on the second click of a button how will you update your record??
    Regards,
    Reetesh Sharma

  • How can I set the submit button to email only certain pages of the pdf not the entire pdf?

    We have a pdf that is a hundred pages or so where each page is an individual product that the customer can select for purchase. At the end of the pdf is an order form. We want to be able to email just the few pages which are the form as a pdf. The default function of the submit button is to email back the entire pdf. As there any way to just select whcih pages would be submitted?

    The problem is for people not using an email client like Outlook. In the version of Reader my boss was using, you had to save the FDF file to your hard disk and then open your browser to go to your web based email and write an email and attach the file. In the newest version of Reader it will open a browser window and create a draft for you, but he thought it was to much work if people were using older versions of Reader. He was really looking for something straightforward where all they had to do is push a button and it was submitted.

  • Once you create a printable form in Acrobat Pro 9, how do you add a submit button?

    I have created printable PDF forms, but don't know how to add a submit button so they can be filled out and emailed. Currently if the people filling them out only have Reader they can only be printed out. They cannot be saved, and they cannot be emailed. Can the submit functionality be added in Adobe Acrobat Pro, or do you have to do that with a third party software?

    Yes, you can use the Extend Features in Adobe Reader, shown here but grayed out since I don't have a form open.
    When you do that, the people filling out the form will be able to Save a copy of the form for themselves and to forward a copy of the PDF to you. You might want to make a copy of the form first if you might have to make changes in the future since the Extended form cannot be edited directly.

Maybe you are looking for

  • MB1B and mvt 541 with reference to a PO.

    Hi, I created a PO for subcontracting when I send the goods to vendor with trx MB1B and mvt type 541 if I perform again the process system allow with the same PO sending goods to vendor. The process can be repeated without end How can I solve the pro

  • Exporting to PNG vs "Save for Web" in Illustrator CC

    I am creating small logos for a website in Illustrator CC (one is 135px x 50px), and the quality of the output has been a bit sketchy: not blurry or pixelated, but the text is messy and uneven while previewing in Acrobat as part of a larger PDF, and

  • I'm trying to use the Opening Title effect on iMovie

    for the "neon" theme and for some reason it keeps coming up with the title and then "university of rochester" underneath, but it won't let me edit the university of rochester text. does anyone know why that would be? i go to the university of rochest

  • FOR UPDATE...SKIP LOCKED - Is it supported to use in 10.2?

    Hi. Is the "SKIP LOCKED" feature in SELECT..FOR UPDATE..SKIP LOCKED supported to use in 10.2.0.3? It does exactly what we want to do. The patchsets for 10g also contains bug fixes for this feature. I know that it's supported (and documented) for 11g,

  • Database is up to date but some sites are not be completely upgraded

    I am getting "Upgrade Available" on all servers in the farm. On closer inspection, the above message is coming up in the "Review Database Status" area. I have run the Upgrade-SPContentDatabase command on the database but although it says it complete,