How to initiate submit when a text element changes?

Hello

I would like to make a submit event when the end user copying certain values in a text element. Is this possible?

TIA, Tamas

Hi Tamas,

You can do this by using a little javascript.

Add onchange = "javascript:doSubmit('SUBMIT'); " to your question in the section"attributes of items item => HTML Form.

In Apex 4.x, you must instead use: onchange = "javascript:apex.submit ('SUBMIT'); " or - even better - to configure a dynamic action!

Kind regards
Jens

Tags: Database

Similar Questions

  • How to apply gray colr to text element in jquery?

    Hi all

    I am trying to disable a particular point and by applying color gary, he works for the list item, but not for the text element.
    Here is the code if I try this code means that it displays the text al elements, but it is only for this item.
    $('input:text').css ("background-color", "#EEEEEE");

    --
    
    function engType(){
    
       if(document.getElementById('P1_ENG_TYPE').value=='Platts Event'  || 
          document.getElementById('P1_ENG_TYPE').value=='Industry Event'|| 
          document.getElementById('P1_ENG_TYPE').value=='Market Engagement Forum'){
            parcmpComBox.disable(true);
            document.getElementById('P1_ENG_ENT').disabled=false;
    $("label[for='P1_ENG_PAR_CMP']").closest("td").next().find("input.dhx_combo_input").css("background-color", "#EEEEEE");
    
    $("label[for='P1_ENG_ENT']").closest("td").next().find("input.dhx_combo_input").css("background-color", "#FFFFFF");
        document.getElementById('P1_ENG_BAU_0').checked=true;  }
        else{
        parcmpComBox.disable(false);
    $("label[for='P1_ENG_PAR_CMP']").closest("td").next().find("input.dhx_combo_input").css("background-color", "#FFFFFF");
    $('input:text').css('background-color', "#EEEEEE");
        document.getElementById('P1_ENG_ENT').disabled=true;
        document.getElementById('P1_ENG_BAU_0').checked=false;}}
    Thank you
    David...

    David wrote:
    Hi all

    I am trying to disable a particular point and by applying color gary, he works for the list item, but not for the text element.
    Here is the code if I try this code means that it displays the text al elements, but it is only for this item.
    $('input:text').css ("background-color", "#EEEEEE");

    function engType() {}

    If (document.getElementById('P1_ENG_TYPE').value == "Platts Event" |)
    document.getElementById('P1_ENG_TYPE').value == "industry event.
    document.getElementById('P1_ENG_TYPE').value == 'Market Engagement Forum') {}
    parcmpComBox.disable (true);
    document.getElementById('P1_ENG_ENT').disabled = false;
    $("label[for='P1_ENG_PAR_CMP']").closest ("td") .next ().find("input.dhx_combo_input").css ("background-color", "#EEEEEE");

    $("label[for='P1_ENG_ENT']").closest ("td") .next ().find("input.dhx_combo_input").css ("background-color", "#FFFFFF");
    document.getElementById('P1_ENG_BAU_0').checked = true; }
    else {}
    parcmpComBox.disable (false);
    $("label[for='P1_ENG_PAR_CMP']").closest ("td") .next ().find("input.dhx_combo_input").css ("background-color", "#FFFFFF");

    Why not put a warning here and see what happens, I don't see any problem witht your jquery code ($('input:text').css ("background-color", "#EEEEEE") ;))

    $('input:text').css ("background-color", "#EEEEEE");
    document.getElementById('P1_ENG_ENT').disabled = true;
    document.getElementById('P1_ENG_BAU_0').checked = false ;}}

    Thank you
    David...

  • How to be notified when the work plan changed

    Anyone know how to connect to a notice of changed work plan?

    I searched all over the contents of the documentation and found nothing.

    Thank you

    You are looking for kAIDocumentCropAreaModifiedNotifier

  • How can I detect when the last container in my stream is full?

    I have a bunch of related containers which I am flowing text through. How can I detect when the text has filled a container? There's an overflowPolicy then I guess it can be detected.

    Hello

    I used this:

    private function IsOverset(textFlow:TextFlow):Boolean

    {

    var zeComposer:IFlowComposer = textFlow.flowComposer;

    var iTextLen:int = textFlow.textLength;

    var iNoController:int = zeComposer.findControllerIndexAtPosition (iTextLen - 1);

    return (iNoController is-1);

    }

    HTH,

    J.

  • How can I create a button with alpha background and text? When the alpha element group influence all elements, but the text remains 100%

    When the alpha element group influence all elements, but the text remains 100%
    I try with the Group of elements and no group, but include elements in the 'State' of the widget library button. Nothing!

    Explain dough my problem and please excuse my English...
    I need to have a transparent background with text (name and job) at the start. When I rollon with the cursor of the mouse on the button background should take a color with 60% alpha, required text full color stay, but if I group or insert State of the item on Rollo button mouse everything take alpha 60%

    I need to regroup or insert in elements went State button because if they are ungruoped to mouse Rollo on bottom its all is ok, but when the mouse passes over the background of text out you of you initial state.

    Can someone help me please?

    I think I know your problem - are you using the opacity of the 'effects' rather than opacity to "fill" - one of the effects will affect the entire element rather than just the rectangle.

    Use this opacity

    not this one

  • How can I submit photographs when you use imessages

    Just bought a MacBook Pro of the retina and I try to send pictures and graphics in imessages. How can I submit photographs when you use imessages.

    On Mac in Photos app, select picture, and then click

    (top right)

    Select Messages, then select the recipient, and the text you want included.

  • \b in the transition from text to text elements. How to get just the plain text?

    I use C++ FDK and get TextItems with FTI_String from the active document. But the text in the text elements contains characters that do not appear in the text. For example, \b. What is this character and how can I get only the plain text without any character of metadata of FrameMaker.

    Ch,

    I think you could see tabs. Presented as an escape sequence, \b translates the BACKSPACE (0x08) ASCII character. For some reason, that's how the tabs are represented when you get the text of a document with the API. You expect to show that \t or ASCII 0 x 09, but they did not.

    There is no way to avoid retrieving a character entered by the user when you F_ApiGetText(). You must simply do a search and replace once you have the string in your code.

    I hope I understand what you're asking here.

    Russ

  • How to remove lov associated to an element when running?

    Hi all

    I have a text element that will have either an associate or not during the performance lov depends on another column. I know how to assign a lov when running but how to remove associate lov of a component during execution?

    Thank you
    Allen

    Allen,

    Try this code,

    SET_ITEM_PROPERTY('.', LOV_NAME, '');
    

    Kind regards

    Manu.

    If my answer or the answer to another person has been useful or appropriate, please mark accordingly

  • How to view computer-id (user name) in the text element

    I want to know how to display the name of average user specific computer id that uses my module in the text element?


    Any idea

    Concerning

    Therese

    Hai,

    Run the following command to create a database function.

    CREATE FUNCTION Fn_Get_Computer_Name RETURN VARCHAR2 IS
            Str_RetVal VARCHAR2(1000);
    BEGIN
          SELECT SYS_CONTEXT('USERENV', 'OS_USER') INTO Str_RetVal FROM DUAL; -- Windows User Name
          RETURN Str_RetVal;
    EXCEPTION WHEN OTHERS THEN RETURN NULL;
    END;
    

    And in the forms, just write

    :. := Fn_Get_Computer_Name;
    

    Kind regards

    Manu.

    If this answer is useful or appropriate, please mark. Thank you.

  • First text field in the page submit when the Enter key is hit. Don't want to send

    Hello

    I searched and cannot find this answer I had before...

    The text field is not present it always when you press included, just a standard text element.

    because it is the first text field in the page... or maybe it was because it is the text field on the page that requires him to 'Submit' page when you press the Enter"" key.

    I don't want the Enter key to send the page.
    Was - to add a dummy hidden text field before this text field?

    Bill:

    Add another text element to your page and to the text element 'attributes of HTML Form elements' specify

    style = "" display: none ""

    CITY

  • When I send a text message and mobile data are off, it is not given, but I do not see this message for a few minutes. I can then refer using "send as a text message. How can I 'send as a text message' in the first place?

    When I send a text message and mobile data are off, it is not given, but I do not see this message for a few minutes. I can then refer using "send as a text message. How can I 'send as a text message' in the first place?

    Disable the iMessage?

  • W376g (tracfone) how can I find out when any text message arrived?

    Like all communications, WHEN something is said is critical to the context of what is said... How do I know WHEN a message has landed on my phone? I don't see time & date stamps for text messages.

    Thank you, JED

    Hi Jed, the phone also has an external icon that should be flashing when you have a message waiting... as well as an icon of the screen itself

    then during playback of the message... Press the arrow down to get the information of 'delivery '.

  • How to make a LabelField align right when the text is long?

    In order to make a good LabelField aligned, I create the LabelField with style "FIELD_RIGHT and add it to a value for money, it works when the text can be displayed on a single line." But when the text is long, over a single line, it works well.

    For example, if the text is "ABDEL FARZAD", appears like this:

    It looks like aligned left

    How can I get it?

    .

    No guarantee, but instead of Field.RIGHT, try

    FIELD. USE_ALL_WIDTH | DrawStyle.RIGHT

  • How to extract values of classic report column in the text element

    Hi all

    I've created a classic report (select id, name,' < input type = "button" value = "add" id = "add" name = "add" > "as" add details "details ;) with a single column as column values want link.i in the text element when I click on the link of that particular record of the report)

    (1) in the link this link column property I've specified the URL as [javascript:insert_in_table(#ID#,#NAME#)]

    (2) text two article P_ID, P_NAME

    (3) in the header of the page, I've specified as javascript

    < script type = "text/javascript" >

    function insert_in_table (id, name) {}

    var regId = ' #detail #'.substr (1);

    var req = new htmldb_Get (not null, $v ('pFlowId'), 'APPLICATION_PROCESS = add', $v('pFlowStepId'));

    Req.Add ('P_ID', ID);

    Req.Add ('P_NAME', Name);

    forced. GetAsync (function () {}

    If {(p.readyState is 4)

    $a_report (regId);

    }

    });

    }

    < /script >

    (4) created a (add) process whose point: on demand, run this process when requested by ajax

    pl/sql: insert into name_detail (id, name) values (: P_ID,: P_NAME)

    now the problem is I m not getting the values of column in the report in the text element, it only shows white.

    Kind regards

    Ketan

    Hello Ketan,

    Assuming that you want to insert the values into the table, this is why you want to set values for the element,

    If this is the case, then no need to define values for the element to insert.

    Follow the steps below, it is one of the embodiment of your condition.

    Step 1: Put the code below in your classic report query

    assuming that the id is of type number and the name is of type varchar, that's why I am attaching the name to apostrophe, see line 3

    select id
         , name
         , ''  as "Add to detail"
    from detail
    

    Edit 'Add details' column-> column attributes-> view-> column of Standard report

    Step 2: Create a process in the processing of the Page

    Name: INSERT_DATA

    Address the point: on demand, run this process when requested by ajax

    Process: putting the code below

    Declare
      P_ID number ;
      P_NAME varchar2(50);
      Begin
          P_ID   := apex_application.g_x01;
          P_NAME := apex_application.g_x02;
          insert into name_detail(id,name) values (P_ID,P_NAME);
    End;
    

    Step 3: Create a java script function to call your insert ajax process.

    Change the Page-> the function and the global variable declaration-> put the code below

    function insert_in_table(id,name) {
      apex.server.process ( "INSERT_DATA", {
          x01: id,x02: name
      }, { success: function( pData ) { }
      });
    }
    

    Hope this helps you,

    Kind regards

    Jitendra

  • How to assign the button for quick access to text elements.

    Hi gentlemen,
    I can assign the button quick access or alt + tank to no push button giving etiquette like E & xit, then x is under broadside.
    but I want to use the access key to a text element as
    my name < text box for my name >
    I want under the name fast and if I press alt + N, then it should go to point text myname.

    You can use a push button and joint access required for which your key and keep the 1 height and width 0
    as soon as you press the desired key combination it will be press this button
    Then, you need to write on trigger when key pressed for this button to go_item('sss') where the sss is the destination text.

Maybe you are looking for