Assigning Events to a submit button

I am new to SharePoint Designer 2010 and I am designing a website for reporting technical issues/problems. It is in aspx format, but I need the submit button to do three things. 1) create a confirmation page, 2) send an email message to an email address
and 3) assign a number to the issue. How exactly is this done in ASP.Net/SharePoint Designer 2010? Thank you.

You can do these using JQuery and SharePoint Designer Workflow.
Create a list and create the required fields. Customize the list form if you need using SharePoint Designer.
Not sure you want the confirmation before or after submit. Refer to the following URLs which has an example for both using jQuery.
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/MS-SharePoint/Q_27552319.html
http://formsdesigner.blogspot.com/2013/04/redirect-after-sharepoint-form.html
Send email using SharePoint Designer workflow. Refer to the following article
http://office.microsoft.com/en-us/sharepoint-designer-help/send-e-mail-in-a-workflow-HA010239042.aspx
SharePoint already generates an ID value for every list item. You can either use that ID or use a custom ID using a calculated field.
--Cheers

Similar Messages

  • 2 Submit Buttons --- doesn't process form

    I previously was utilizing one button and the cancelAction command. However, this was causing the form to be submitted when used in the preSubmit event.
    I have recently implemented a 2 submit button solution to a form, which works beautifly for validation. All my edits are executed when they are suppose to be. However, now the form does not submit. When I click the complete button, noting happens.
    I have regular button name Validate, where I do all of my edit checks, and it calls the click event of a submit button, Button1, if all edits pass. I use the command Button1.execEvent("click");
    The click event of Button1 is greyed out, not sure if that is an issue.
    Has anyone ever encountered this before?

    Hi,
    I am guessing that you have used a submit by email button, which automates the submit process. As a result it does not have a click event. I would recommend using a regular button with script in its click event that will do the submit. There are examples of single button submit here, which you should be able to adapt for your hidden submit/regular button: http://assure.ly/eUR4wJ.
    Hope that helps,
    Niall

  • Use checkboxes with drop down and submit button to pas values

    I have a form with six checkboxes, one drop down, and one submit button. I want the check box ON values to be appended to the hyperlinks stored in the drop down. The onclick event of the submit button sends the form results to a url with the checkbox values appended to the end of the hyperlink in the drop down. Need code please. Several programmers have bailed out on this when they got down to the event in the submit button. Can you Sun experts do better??? Here is the code for the form WITHOUT a properly programmed submit button and no javascript.
    <form name="jump">
    <select name="menu">
    <option value="http://www.whateversite.com/CP/View2Ref.php">Option 1 View 2 Test</option>
    <option value="http://www.whateversite.com/CP/AllNew.php?BK=Tap&CH=10&VR=20">option 2</option>
    <option value="http://www.whateversite.com/CP/AllNew.php?BK=Tap&CH=10&VR=20">option 3</option>
    <option value="http://www.whateversite.com/CP/AllNew.php?BK=Tap&CH=10&VR=20">option 4</option>
    </select>
    <input type="button" onClick="window.location.href=document.jump.menu.options[document.jump.menu.selectedIndex].value;
    " value="GO">
        <input type="checkbox" id="chkbx_TR_id1" name="TR" value="ON" alt="TRCheckbox" title="Search 1" tabindex="4">TR
        <input type="checkbox" id="chkbx_ES_id2" name="ES" value="ON" alt="ESCheckbox" title="Search 2" tabindex="4">ES
        <input type="checkbox" id="chkbx_NV_id3" name="NV" value="ON" alt="NVCheckbox" title="Search 3" tabindex="4">NV
        <input type="checkbox" id="chkbx_BT_id4" name="BT" value="ON" alt="BTCheckbox" title="Search 4" tabindex="4">BT
        <input type="checkbox" id="chkbx_SM_id5" name="SM" value="ON" alt="SMCheckbox" title="Search 5" tabindex="4">SM
        <input type="checkbox" id="chkbx_EN_id6" name="EN" value="ON" alt="ENCheckbox" title="Search Bible Encyclopedia" tabindex="4">ENThe resulting URL when the submit button is hit should be like this if all check boxes are checked.
    http://www.whateversite.com/CP/AllNew.php?BK=Tap&CH=10&VR=20&EN=ON&TR=ON&ES=ON&NV=ON&BT=ON&SM=ON&TR=ON"
    Thank you in advance for any replies.

    This forum is concerned with Java and not Javascript (they are not the same) . Though there are forum members who could help you on this you would probably do better to go to a Javascript forum.

  • Submit button to trigger mail sending

    my requiredment is in interactive form.. i have some fields to be filled by end user at their local machines..
    and then a submit button is there, which when clicked will trigger a new mail (say an new mail window of outlook express will open with this pdf attached to a particular receiver name by default..
    can some body tell me what script i have to write (in formcalc/javascript) for this and  in which event of the submit button i should write the script

    Soumya,
    Check this [document|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d]
    Another thing which I found and you can try is :
    1. Create a regular button.
    2. In the Object palette, set the Control Type to Submit.
    3. Go to the Submit tab. Select Submit Format as PDF.
    4. In the Submit to URL box, type the submit email address preceded by mailto: tag
        For example: mailto:[email protected]
    Please note that in order to submit a PDF, either :
    - your end users must have Acrobat installed; or
    - you must pay Adobe for a Reader Extensions license for your form.
    If you don't do this, your button won't work.
    Chintan
    Edited by: Chintan Virani on Mar 3, 2008 11:05 AM

  • How to trap Submit button event in OAF

    Hello,
    I'm doing controller extension for create account button in Customer UI.
    Issue: I'm not able to trap the table action to add extra validation logic.
    I tried to use pageContext.getParameters("CreateButton") but it didn't work i.e. debug message was not printed written inside if statement.
    Button Structure:
    TableAction
    Flowlayout
    Submit button.
    Code:
    public void processFormRequest(OAPageContext pageContext,
                                       OAWebBean webBean) {
            //super.processFormRequest(pageContext, webBean);
            OAApplicationModule am = pageContext.getApplicationModule(webBean);
            ArrayList exceptions = new ArrayList();
            OAFlowLayoutBean oaflowlaybean =
                (OAFlowLayoutBean)webBean.findChildRecursive("TableActionsRN");
            OASubmitButtonBean vbuttonBean =
                (OASubmitButtonBean)oaflowlaybean.findChildRecursive("CreateButton");
            String buttonId = vbuttonBean.getID();
            String buttonId12 = vbuttonBean.getName();
            String asd=vbuttonBean.getEvent();
            String s = pageContext.getParameter(EVENT_PARAM);
            String s1 = pageContext.getParameter(vbuttonBean.getName());
                if (s.equalsIgnoreCase("CreateAccount")) {
                OAViewObject vo =
                    (OAViewObject)am.findViewObject("HzPuiAccountTableVO");
                if (vo != null) {
                    pageContext.writeDiagnostics("Jai-1", "VO Found", 1);
                    OARow row = (OARow)vo.getCurrentRow();
                    if (row != null) {
                        pageContext.writeDiagnostics("Jai-2", "Row Found", 1);
                        String partyid =
                            (String)row.getAttribute("PartyId").toString();
                        pageContext.writeDiagnostics("Jai-3", "PartyId" + partyid,
                                                     1);
                        int PartyNum = Integer.parseInt(partyid);
                        String partyacctcnt = null;
                        try {
                            OracleConnection conn =
                                (OracleConnection)pageContext.getApplicationModule(webBean).getOADBTransaction().getJdbcConnection();
                            pageContext.writeDiagnostics("Jai-4", "Inside Try", 1);
                            String query =
                                "SELECT count(1) lcount  FROM HZ_CUST_ACCOUNTS WHERE party_id=:1";
                            PreparedStatement stmt = conn.prepareStatement(query);
                            stmt.setInt(1, PartyNum);
                            ResultSet resultset = (ResultSet)stmt.executeQuery();
                            if (resultset.next()) {
                                pageContext.writeDiagnostics("Jai-5",
                                                             "Inside Result Next",
                                                             1);
                                partyacctcnt = resultset.getString("lcount");
                            stmt.close();
                        } catch (SQLException sqlexception) {
                            throw OAException.wrapperException(sqlexception);
                        int i = Integer.parseInt(partyacctcnt);
                        /*   String HoldFlag = (String)row.getAttribute("Attribute11");
                        // Check Hold Flag: "Y" then restrict to create new account
                        if (HoldFlag == "Y") {
                            pageContext.writeDiagnostics("Jai", "Inside Hold Flag", 1);
                            exceptions.add(new OAException("XXGCO",
                                                           "XXTCO_CREDIT_LIMIT_CHECK",
                                                           null, OAException.ERROR,
                                                           null));
                        // One Party-One Account: Greater or Equal to 1 then throw error mesaage
                        if (i > 1) {
                            pageContext.writeDiagnostics("Jai-6",
                                                         "Inside Account Check",
                                                         1);
                            exceptions.add(new OAException("XXGCO",
                                                           "XXTCO_CREDIT_LIMIT_CHECK",
                                                           null, OAException.ERROR,
                                                           null));
                        if (exceptions.size() > 0) {
                            pageContext.writeDiagnostics("Jai-7",
                                                         "Inside Exceptioon calling",
                                                         10);
                            OAException.raiseBundledOAException(exceptions);
                        } else {
                            pageContext.writeDiagnostics("Jai-8",
                                                         "Inside else Exceptioon calling",
                                                         10);
                           // super.initParametersPFR(pageContext,webBean);
                            vbuttonBean.setFireActionForSubmit(null, null, null, false);
                            super.processFormRequest(pageContext, webBean);
    Please suggest the how to overcome with above mention issue.

    Hi Kiranmai,
    You can capture the event of the radio button in the following way in oninputprocessing.
    DATA: event             TYPE REF TO if_htmlb_data,
                   radioButton_event TYPE REF TO CL_HTMLB_EVENT_RADIOBUTTON.
             event = cl_htmlb_manager=>get_event( request ).
             IF event IS NOT INITIAL AND event->event_name = htmlb_events=>radiobutton.
               radioButton_event ?= event.
               ENDIF.
    you can get the attributes of clicked radio button in
    event->event_class
    event->event_id.
    event->event_name
    event->event_type
    event->event_server_name
    In layout define the radio button as
    <htmlb:radioButtonGroup   id          = "test_id">
            <htmlb:radioButton      id          = "id_red"   text = "Red"               onClick="myClick" />
            <htmlb:radioButton      id          = "id_blue"  text = "Blue"          onClientClick="alert('blue clicked')"/>
            <htmlb:radioButton      id          = "id_green" text = "Green"      onClick="myClick" onClientClick="alert('green clicked')"/>
          </htmlb:radioButtonGroup>
    Hope this will solve your problem.
    Donot forget to assign points for helpful answers.
    Regards
    Aashish Garg

  • Associating two events with submit button using  javascript in jsp

    Hi
    How can i Associate two events with submit button using javascript in jsp. Firstly it should insert the data to database and secondly it should close the same pop-up window

    Have something like :
    <input type="submit" name="submitbtn" value="Click me" onClick="function1(); function2(); " />
    You just call both functions sequentially, it's that simple. Although using javascript to work with a database, that seems a bit tricky.

  • The submit button in compressor wont become active , even after I assign...

    The submit button in compressor wont become active , even after I assign presets and destinations to source files. Ive read compressor help and I cant find anything that relates to this problem. Could anyone please help me out, id really appreciate it.
    permahex
    IBG4 - MBP   Mac OS X (10.4.6)  

    Please list what exactly you're doing and what versions of the relevant software you're using. All those details do matter.

  • I've set up an event and published it, but it won't allow for registrations.  The SUBMIT button is grayed out.  Thoughts?

    I've set up an event and published it, but it won't allow for registrations.  The SUBMIT button is grayed out.  Thoughts?

    The submit button is greyed out in case the registration page is being viewed in preview mode.
    Please check if the following string is present in the event registration URL:
    "preview=true"
    If it is present, please try by removing this string.
    Thanks,
    -Nitin

  • Submit button from Adobe form doesn't trigger event???

    Hi all,
    I am having this weird problem, the submit button wont trigger any event i register to "submit" and so as to the "check" event. when i send the link to one of my colleagues, the button can trigger the event.
    i am using adobe reader 8 on IE 6, didn't solve the problem when i downgrade it to reader 7.
    any advice???
    Thank you.

    Hi,
    I too had a similar problem sometime back regarding the Submit button. Since you are saying that it is working for your colleague but not you, I predict that something wrong with the network you are in, compared to that of your friend.  Have you provided the Preprocessor URL for the button in the Adobe designer?
    Cheers
    Madhu

  • Submit button to trigger BSP event

    Hi,
      I have a BSP applicaition which is already existing, now I need to integrate a Adobe form for User Interface.. On clicking the Submit button in the Interactive form.. I should trigger an event and at the same time it should call the 'On Input Processing' method of the BSP application.
    Please help me if some one has done it .. or give ur suggestions .. ?
    Thanks
    Sivaraj

    Hello Otto,
    Thanks for the reply,  I created my application refering the above blogs.
    I have BSP Page
    <htmlb:content u2026.>
    <htmlb:page u2026.>
    <htmlb:form>
    <<AREA FOR DISPLAYING ERROR/SUCCESS MESSAGES >>
    << HTMLB Buttons for SAVE/PRINT_PREVIEW/BACK >>
    <iframe src="getPDF.do">
    u201DControl getPDF.do returns Adobe Interactive Form in PDF format
    </iframe>
    </htmlb:form>
    </htmlb:page>
    </htmlb:content>
    in getPDF.do I'm getting PDF Interactive form as PDF Fiel, Inside the form there is a Save button.
    Currently if I click the save button in Interactive for , only the IFrame & Adobe Form is getting refreshed,
    What I want is 
    On Click of Save button of ADOBE, It should trigger Click event of Save button in BSP Page.
    Is there any script event in Adobe Form to access window.document object of my main page?
    Regards
    Geogy

  • Javascript Submit button onclick event handler

    Hi,
    I am having trouble getting the onclick event handler of a form to execute when the button is pressed. I am trying to open a page in a new window depending on if the user selects that option in a checkbox.
    There is one form(id='graphform') and 2 submit buttons, each with a checkbox before it. I want the new window to open only iuf the right checkbox and matching submit button has been checked.
    One of the checkbox/button pair: The onclick="checkWindow('w1','graphform');" is never getting called.
    <input type="checkbox" id="w1" name="win1" style="margin-right: 10px" value="window"  onclick="javascript:document.gform.win1[0].checked = true;"><a style="margin-right: 10px">Graph in new window</a>
    <input type="submit" value="Create graph" onmouseover="this.form.cumulat.value='0';this.form.graphGroup.value='Consumption'; document.getElementById('hintSubmitStop').value='1';" onclick="checkWindow('w1','graphform');" onmouseout="document.getElementById('hintSubmitStop').value='0';" /></td></tr>Javascript window opener:
    function checkWindow(win1, str){
              var formObj = document.getElementById(str);
         var checkBoxObj = document.getElementById(win1);
         if(checkBoxObj1.checked == true){
                   formObj.target = "_blank";     
                   formObj.action = "graphDisplayFrame.jsp";     
         else if(checkBoxObj1.checked == false){
                   formObj.target = "_self";
                   formObj.action = "graphDisplay.jsp";
    }Any suggestions?
    J

    You're storing the value in "checkBoxObj" and in the next line you use different variable name as "checkBoxObj1".
         var checkBoxObj = document.getElementById(win1);
         if(checkBoxObj1.checked == true){
    instead of "true', try      if(checkBoxObj.checked == 1){

  • Submit button fails to call event

    Hi
    I hav a webdynpro app where I am using a PDF form.
    The Submit button does not respond.
    When I take a project from one of my colleagues and I try to run it in my
    development environment the submit button works well and responds to my clicking
    by going to the event handler attached to the action.
    The environment we use is the same, so are all the Web Dynpro, Adobe Reader, and Lifecycle Designer versions.
    Anyone seen such behaviour?
    Regards
    yuval

    Hi,
    Otto is right.
    SAP recommends ZCI rather than instead of ACF.
    As per the note: 766191, it is supported upto reader 9. I am not sure about 9.1.
    Please refer to Note: 834573,1055911, 1042394 for ZCI implementation.
    Hope this would be helpful.
    Regards,
    Aditya Deshpande
    Edited by: Aditya Deshpande on Dec 1, 2009 1:32 PM
    Edited by: Aditya Deshpande on Dec 2, 2009 9:02 AM

  • HTTP Submit Button vs event.target.submitForm

    Dear All,
    I have a problem that looks like I would need some expert help to resove.
    I have designed a small Form with Acrobat LiveCycle Designer ES 8.2
    The plan is people to fill out the form and submit it to a script on a web page.
    Here is the problem.
    When I insert a regular HTTPSubmit button. Everithing is working just fine. All th fields are submited, and I can process them from there with my script.
    However, when I try to make a regular button and add javascript to the click event.
    event.target.submitForm({cURL: "http://mysite/myscript.php", cSubmitAs:"HTML", cCharSet:"utf-8"});
    The form is submited but non of the fields are.
    As an example output from REQUEST array in PHP.
    With the regular HTTP Submit button I get:
    Array
        [familyname] => 1
        [SubjectNumber] => 2
        [Site] => 3
    While with the above javascript I get:
    Array
        [form1] => Array
                [0] =>
    Looks like with the Javascript I somehow cannot submit the actuall fields.
    Finally, let me tell you the reason why I even want to use Javascript instead of the regular HTTP Submit button.
    My plan is so people can actually change the location where to submit the form.
    From what I read if I use a regluar submit button, the URL must be hardcoded and cannot be changed (selected, by the user dinamically)
    While if I use javascript then I can easily have a text field where people can enter the site where they want to submit the form and use it.
    Thank you very much for your help
    Please let me know if you need any further information
    Regards
    Tsvyatko

    Hey gays, thanks for answering.
    However, looks like I still have problems.
    When I insert a regluar HTTP submit button, it asks for the URL or it will give error.
    Anyhow, if I leave the URL setting blank, and try to execute the code u mentioned, I get a messege, "submit canceled" and nothing is happening,
    And if I enter something in the URL, looks like it still overites the code and submits the form the the hard coeded url.
    In addition, the regular submit button does not even allow me to enter code in the click even, so I did enterend in the mose in even,
    as to execute the code before the button is clicked.
    In addition I also tried to enter the even in a text field exit which I was hoping to use so the user can enter their own url.
    In other words.
    could please be more specific.
    On which even shown I enter the code.
    p.s.
    Finaly,
    in Form Calc
    If I enter this on the mouse enter of the button:
    form1.SCOPA_p2.HTTPSubmitButton1.event__click.#submit.#target = form1.SCOPA_p2.HTTPSubmitButton1_txt.rawValue;
    I get error accessor form1.SCOPA_p2.HTTPSubmitButton1.event__click.#submit.#target is unknown
    Any other thoughts
    Thanks
    Tsvyatko

  • Unable to capture the submit button event in OAF

    Hi
    I am facing a problem extending the NavigationCO controller on "/oracle/apps/per/selfservice/review/webui/ReviewPG". I just want to throw some exception when the user clicks the submit button in the PFR. I have used the following code but i did not find any solution. Can anyone help me out in this issue. When i used the first method its displaying some error on submitting the page but where as in the second method its commiting the data instead of throwing an exception.
    I tried the following methods:
    public class XXXNavigationCO extends NavigationCO {
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    if (pageContext.getParameter("HrSubmit") != null)
    super.processFormRequest(pageContext, webBean);
    pageContext.forwardImmediatelyToCurrentPage(null,true, "Y");
    throw new OAException("Test Message");
    else{
    super.processFormRequest(pageContext, webBean);
    2.
    public class XXXNavigationCO extends NavigationCO {
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    if ("HrSubmit".equals(pageContext.getParameter(EVENT_PARAM)))
    throw new OAException("gsgfshghjgashfa");
    super.processFormRequest(pageContext, webBean);
    }

    Hi Gaurav,
    Thanks for the repsonse. I tried the same code but its not throwing the exception its directly launching me the confirmation page. Actaully the controller is redirecting to confirmation page on submit. But now i want to check some condition on submit and throw an exception if the condition is not satisfied. If the condition is satisfied i want the seeded controller action to take place.
    I tried using "pageContext.forwardImmediatelyToCurrentPage" and "pageContext.forwardURLToCurrentPage" but i did not achieve success in it.
    If the above mentioned "pageContext.forwardURLToCurrentPage" is right could you please give me an example to get thjis resolved.

  • Multiple Submit buttons on one form

    I'm developing an application that will have 4 buttons at the bottom of the form to do various things with the form information. One of the buttons will link to a separate web page for confirmation of the action. I tried to set a global variable and place an onclick event for the button which assigns a specific value for that variable. I then placed a <jsp:forward tag in my code that would be included if the global variable was the specific value which the button changes it to. I"m not sure if I'm being clear here. There is the forms page with the 4 buttons. It possesses all of this code. So the global variable is declared at the top. The variable is set if the 'Delete' button is clicked. And further down there is an if statement used to include the <jsp:forward tag when the 'Delete button has been pressed and this form is again being drawn up.
    What I describe doesn't work. The global variable I guess is reset when this form is drawn up a second time after the 'Delete' submit button is pressed. I''m not married to the way that I'm solving this problem at this point so I'll take any suggestions. But basically I want the Web Forms fields to be sent to this delete jsp so that I can confirm the command to delete the indicated record from the database. The three other buttons on this form are 'Add/Update', 'Rename', and 'Cancel'. The Add/Update and Rename buttons should also be submit buttons but they should link back to the same page as they are located on. The cancel button is to return the user to the index page. I have this working using a document.location.href command in the onclick event for that button.
    Brian

    Hi Brain. If I'm following your thoughts, you may want to consider replacing the four sumbit buttons with four radio control buttons and one submit button.
    I would suggest that you set your form action via a radio control button then, thru the form action, pass the form to a Servlet or JSP that contains some logic.
    <!doctype html public "-//w3c//dtd html 3.2 final//en">
    <html>
    <head>
    </head>
    <body>
    <!-- set your action here to go against a Servlet or JSP.  The
         Servlet or the JSP will contain the logic to Delete, Add/Update, Rename or Cancel
         based on the formAction value.
    -->
    <form action='ServletOrJSPNameHere' method='post'>
    <br> <input type='radio' name='formAction' value='Delete'>Delete
    <br> <input type='radio' name='formAction' value='Add/Update'>Add/Update
    <br> <input type='radio' name='formAction' value='Rename'>Rename
    <br> <input type='radio' name='formAction' value='Cancel'>Cancel
    <br> <input type='submit' value='submit'>
    <form>
    </body>
    </html>
    // this code would go into your Servlet, JSP, or worker class
    String formAction = request.getParamger("formAction");
    // test for null value  
    if ( formAction == null ) { 
         // reload the page with a message to pick a radio button
    else if ( formAction.equals("Delete") {
       doTheDeleteProcessing();
    else if ( formAction.equals("Add/Update") { 
       doTheAdd/UpdateProcessing();
    else if ( formAction.equals("Rename") {
       doTheRenameProcessing();
    else {
       doTheCancelProcessing();
    }I hope this helps.

Maybe you are looking for