Submit Button on Enter Press

Hi:
Perhaps i have a stupid question but i like to talk with you of it.
I want that when i press Enter, my commandButton1 executes "Submit", the properties inspector of the commandButton don't have this option?, do i need to create a javaScript?. If i must to create a script, How do i handler the diferents browsers
if(KeyPress == 13)
submitForm('form1',1,{source:'form1:commandButton1'});
return false;
//document.getElementById("commandButton1").action();
Sorry by my very poor english, and many Thanks for the help.

Hi,
use the defaultCommand in af:form:
<af:form (...) defaultCommand="yourButtonId" >
</af:form>For more information see "ADF Faces: Submit a form with the Enter key"
http://blogs.oracle.com/Didier/ButtonToSubmitForm
Regards,
Didier.

Similar Messages

  • How to fix problem of bypassing the submit button validation by pressing the space bar in the required fields. this occurrs in the internet explorer and chrome browser, but in foxfire.

    How to fix problem of bypassing the submit button validation by pressing the space bar in the required fields. This occurs in the internet explorer and chrome browse but not in foxfire

    How to fix problem of bypassing the submit button validation by pressing the space bar in the required fields. This occurs in the internet explorer and chrome browse but not in foxfire

  • To click submit button when I press Enter

    I want to activate my SUBMIT link(not button) when I press the "ENTER" button in my Key board. I am using Struts.
    Message was edited by:
    ashish.0532
    Message was edited by:
    ashish.0532

    You have to use javascript to do this. Most browsers only support default buttons, not links.

  • Process without an Enter or Submit button?

    This is something I've now tried for several weeks. I know it can be done because I see the swf files but after an all nighter and this being the third time that I've revisited this figure it's about time to ask the pro's.
    How does one have calculations or conversions happen instantly as values are entered? No submit button, no enter, just as they type. So if they entered 1 in input box one then obviously nothing will happen but uppon entering data in the second I want the results text field to display the answer. So basically an eventlistener but not listening to a button but rather the input text field.
    Here's an example of that being done. I would love to be able to peak inside this swf to see what this person did.
    http://dantrix.net/my_Files/Converter/currencyConverter.swf

    just use:
    text1.addEventListener(Event.CHANGE,fCalculate);

  • Problems with programming submit button and attachment upload

    i have a problem programming the upload "athachments" and i
    would like to know how to program the submit button to go to an
    email address. once the form is filled out i want the information
    to go into my email inbox. what script or coding to i need to add
    to the page to make these two things i mentioned above happen?the
    code for the page and where does it go. that is the reason for my
    questioning on how to program the two buttons and place the code in
    the html where it belongs so the page will function right and go to
    the email adress that i need it to go in.
    http://worldofexotics.com/submit.htm

    > There are only two ways to process form data -
    You understand that, right? You are asking about how to
    process form data -
    and I am saying that there are only 2 ways to do that.
    > 1. Use mailto:[email protected] as the action of the form
    You understand that? Each form has an action -
    <form action="..."
    --------------------^^^
    The contents of that action attribute tells the browser what
    to do when the
    form's submit button is successfully pressed.
    In other words, you could have <form
    action=mailto:[email protected]
    That would be ONE way to do it - but there are many
    disadvantages, as
    explained further in my post. The other way is method 2 -
    > Use a server-side scripting method to a) harvest the
    form's data, b)
    > process it in some manner, e.g., enter it into a
    database, c) formulate
    > and
    > send an email to one or more email recipients, and d)
    redirect the visitor
    > to some ending page
    To do that, you'd have to *have* some server-side script -
    there are quite a
    few of them to choose from but the normal host usually also
    supplies one as
    part of your hosting package.
    > You would have to decide which of these methods is best
    for your needs,
    > but if it's Method 2, then start by asking your host
    what they provide for
    > form processing.
    Do you undertand that?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "jayney" <[email protected]> wrote in message
    news:[email protected]...
    > Hi I have been sent this answer but i am still none the
    wiser
    >
    > Can you work it out? this is the answer
    > below.............................
    >
    > There are only two ways to process form data -
    >
    > 1. Use mailto:[email protected] as the action of the form
    > 2. Use a server-side scripting method to a) harvest the
    form's data, b)
    > process it in some manner, e.g., enter it into a
    database, c) formulate
    > and
    > send an email to one or more email recipients, and d)
    redirect the visitor
    > to some ending page
    >
    > Method 1 is quite simple, and is also the least
    reliable. It depends both
    > on your visitor having an email client already installed
    on their
    > computer -
    > this eliminates public computers, or home users without
    email clients
    > installed (more and more it seems) - and on the
    installed email client
    > responding to
    > the mailto call. It is not possible to use this method
    *and* send the
    > visitor to a
    > thank you page as well.
    >
    > Method 2 is the preferred method, since it eliminates
    the problems of
    > method
    > 1, but it means that you have to grapple with
    server-scripting somehow
    > (ASP,
    > CF, PHP, perl, etc.).
    >
    > You would have to decide which of these methods is best
    for your needs,
    > but if it's Method 2, then start by asking your host
    what they provide for
    > form
    > processing.
    >

  • My "submit" button is not working?

    Hello
    I have created my submit button in Dreamweaver using a form.
    However what I would like to do is have people enter their email address and with the submit button it would be sent to my gmail account.
    I went to my actions tab for my form and submit button and entered my email add but did not seem to do the trick?
    What I have done wrong? Please help!
    Much APPRECIATED
    WES

    Hi,
    if it's ok for you, people can send a email at your adress, it's enough to use (translated from German-DW):
    Insert -> email link. In my DW it looks lik this:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>eMail</title>
    </head>
    <body>
    <a href="mailto:[email protected]">eMail</a>
    </body>
    </html>
    The users click into the word "eMail" your eMail-program wil start.
    Naturally there are som other ways, like this for example:
    <td width="35%"><input id="send" type="submit" name="Submit" value="send" />
    I suggest first try or test the easy way.
    Hans-G.

  • SUBMIT BUTTON BROKE ON EARLY VERSION ANDROID PADS

    You
    We are experiencing a problem where we created a form on formscentral from scratch not an import and on an android phone is works OK but on any of our android pads it does not work, the send button is inoperative and if they email or save the forms they stay blank. We have Reader 11.5 (On my Ipad it works OK) please advise, we currently have a full adobe subscription.

    Hi acrojack,
    The submitForm action currently supports submitting a document to Adobe FormsCentral only. The cURL must be an Adobe FormsCentral target.
    To add an action to button to send the form as an email, you can perform the following steps:
    Add the "Submit a form" action to your Submit button.
    Enter "mailto:" (including a colon) followed by email recipient(s).
    Select "PDF The complete document".
    More details about JavaScript submitForm to Adobe FormsCentral can be accessed at Doc - JavaScript for Reader Mobile API Reference (Android)
    If you are still observing issues, please send the form to [email protected] so that we may investigate the same.
    Thanks,
    Adobe Reader Team

  • 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

  • I am trying to set up my newly purchased Apple TV but when I enter my network password while setting up, I am not able to enter the Submit button, any idea how to hit the visible submit button that is visible on screen but not responding?

    I am trying to set up my newly purchased Apple TV but when I enter my network password while setting up, I am not able to enter the Submit button, any idea how to hit the visible submit button that is visible on screen but not responding?

    You need to use the right arrow on the remote to go all the way to the right. The submit button will be highlighted and you can then press select on the remote to proceed.

  • Need to allow only one of 2 buttons in a region to respond when enter pressed

    Hi,
    Apex version 4.2
    Theme: Blue Resposive 25
    My page has 1 region with a sub-region inside it.  Both regions have a button. When I hit enter it seems the button in the sub-region is the one that gets actioned.  I don't want this to happen I want the other button to run.  Is this possible ? 
    Also when I google around looking for answers to this issue I see references to apex page items having a setting value of 'Submit when enter pressed' which can be changed to Yes or No.  I simply can't find that setting in my items.  Perhaps it has been removed in apex 4.2 ?
    Thanks
    Steve.

    Daggers wrote:
    Thanks Scott,
    That is useful information.  I turned on debug and I can see that my problem is actually that neither button is being submitted on enter.
    Are you able to tell me where the setting 'Submit when enter pressed' ? is found.  I think this is probably the key to my issue.
    Steve.
    It's in the item's Settings section. However, it's only available on Text and Password items.

  • Can a today's date be added in a date field when the submit button is pressed?

    I created a form with a submit button and the form is sent via email.  Can the date when the form is submitted show up in a date field with the button is pressed?
    Any help with this is much appreciated. Thanks.

    Hi,
    there is a preSubmit event for form objects you can use.
    Select your date field, open the script editor and add this script (language is FormCalc) into the preSubmit event.
    $ = num2date(date(), "MM/DD/YYYY")

  • When i placed a AccessKey to Submit Button (Eg: AccessKey="S"), and pressed Shift + Alt + S, the focus is going to Submit button and as well as Submit operation is also performed. Is this the expected behaviour in FireFox for AccessKeys

    When i placed a AccessKey to Submit Button (Eg: AccessKey="S"), and pressed Shift + Alt + S, the focus is going to Submit button and as well as Submit operation is also performed. Is this the expected behaviour in FireFox for AccessKeys

    What were you expecting when using an accesskey?
    I use that also on this forum to submit my posts:
    <pre><nowiki><input accesskey="s" class="btn btn-important" value="Post Reply" type="submit">
    </nowiki></pre>

  • 'ENTER' key for Submit Button

    Hi,
    I have 1 inputfield , 1 dropdown and 1 submit button in a page. I want to execute submit button always when you click 'ENTER'.
    Now when i click enter from inputField it process something and in background there is no event triggered.But from dropdownbox nothing happens when i click 'ENTER' key.
    Is there any way to assigne 'ENTER' key to the submit button(<htmlb:button) always?
    Thanks in advance
    AP

    Hi,
      It looks like SubmitOnEnter is not available in my verions of htmlb. I just looked into some javacode,
    I have 2 page, Initial and Report,
    Initial page has the code,
    <script>
    document.onkeydown=function(){
    if(event.keyCode==13){document.forms.initial.submit()}}
    </script>
        <htmlb:form id     = "initial"
                    method = "post"
                    action = "Report.htm" >\
          <htmlb:inputField id            = "TranNumber"
                            type          = "string"
                            value         = "<%= INIT-TranNumber %>" />
          <htmlb:button id      = "SUBMITVALUES"
                        text    = "EXECUTE"
                        onClick = "HandleSubmit" />
    </htmlb:form>
    Report page captures it as,
    CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
    IF event_id = CL_HTMLB_MANAGER=>EVENT_ID.
      DATA: EVENT TYPE REF TO CL_HTMLB_EVENT.
      EVENT = CL_HTMLB_MANAGER=>GET_EVENT( runtime->server->request ).
      IF EVENT IS NOT INITIAL.
        CASE EVENT->ID.
          WHEN 'SUBMITVALUES'.
            DATA: TranNumber TYPE REF TO CL_HTMLB_INPUTFIELD.
             TranNumber ?= CL_HTMLB_MANAGER=>GET_DATA(
                          request = runtime->server->request
                          name    = 'inputField'
                          id      = 'TranNumber').
        ENDCASE.
      ENDIF.
    ENDIF.
    Basically the no event is not fired. so it is not coming into the Case.
    How to handle this?
    Thank you
    AP

  • HT1657 I press the rental button then enter my gift card # and I don't know if it's download or not?

    I press the rental button then enter my gift card # but I don't know if it's downloading or not???

    No problem just happy you got it working again
    Happy Days

  • Draw chart only after submit button is pressed.

    I have a page 2 date picker's, a submit button and a line chart. How do I prevent the line chart from being drawn until the submit button is pressed?

    Hi,
    You can e.g. set region conditionally by request.
    Add your page branch request value and use that in region condition.
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

Maybe you are looking for

  • Re-install of CS3 on Windows 7 Fails

    Greetings. Out of the blue all the programs in CS3 stopped working on Windows 7.   I received the message stating that the licensing stopped working.  After an chatting with a tech and going through the license recovery tool, and all the other option

  • Can't connect to a networked printer - Airlink101 USB Print Server

    I am new to Mac. I am trying to connect my iMac to a Brother HL-5040 laser printer through an Airlink101 USB print server over my wireless network. The iMac connected to the 802.11g network immediately without any issues which is more than I can say

  • 9I의 SPFILE사용에 대해서

    제품 : ORACLE SERVER 작성날짜 : 2004-10-12 9I의 SPFILE 사용에 대해서 ======================== PURPOSE Oracle9i부터는 database의 initial parameter를 지정하는 initSID.ora file외에 server parameter file이라고 불리는 spfileSID.ora가 새로 소개되었다. 이 spfile을 사용하게 되면 alter system을 통해 databas

  • I get a error when i open the criteria of a Alert subscription

    Hi All, I get this strange error when i open the criteria of a Alert subscription. Below is the screen shot of the error and the contents of the alert. Can any one help. Note:  The following information was gathered when the operation was attempted.

  • SMIL files download automatically???

    Hi all, Was not quite sure where to post this, well, I was looking for some .SMIL tutorials and followed the links on apple's quicktime sites. One of the links is http://www.multimedia4everyone.com/ which you can find in the SMIL resources box on the