call javascript to enable the disabled field...

Hi guys,.

I want to on the field by calling javascript by pressing the button.

How to do this?

Thanks and respect,
SKUD.

Hi Skud,

On the AJAX call back, you came to know that about enabling/disabling of fields depending on whether you can write the script below.
document.getElementById('ITEM_NAME').disabled = true;

Thanks and greetings
Teriimana

Tags: Database

Similar Questions

  • Photoshop Script - Javascript: return of the input field value?

    Hello

    I've got the entry field following "edittext" rendered in a window. How can I find the value that has been entered in it?

    cal_char = cal.add ('edittext', [25,40,135,60], ' 1');

    I tried cal_char.value, but it does not work.

    Any help?

    Thank you!

    Try cal_char.text,

    x

  • Disable or enable the text fields by condition

    Hello

    How can I make it according to the picture below with Adobe LiveCycle Designer ES2?

    ald

    I think that something like this might work:

    the code must be placed on the Group of radio buttons

    {Switch (this.) RawValue)}
    case '1 ':
    textfieldA open;
    break;
    case '2 ':
    textfieldA readOnly;
    textfieldB open;
    break;
    }

    There is a tutorial at: http://acrobatusers.com/tutorials/2007/09/js_disabling_fields who can help

  • JavaScript, pulling on the disabled button also

    Experts,

    I have a button that has a clientListener that takes a javascript. The js disables the button. So far its good, but the problem occurs if the user clicks on the button disabled js fires again.
    <af:commandToolbarButton text="Update Profile" id="ctbUpdate"
                                           actionListener="#{viewScope.CustomerProfilePageBean.toggleButton}"
                                           binding="#{viewScope.CustomerProfilePageBean.updateButton}">
                    <af:clientListener method="toggleSplitter" type="click"/>
                  </af:commandToolbarButton>
    isn't this strange?

    thnks
    11.1.1.5 Jdev

    It is not strange, but stupid...
    Also happens when using af:showPopupBehaviour with type = 'click '...
    I would like to know where is it worth it to work like this?
    Try using the type = 'action' on af:clientListener, he works for af:showPopUpBehaviour...

  • JavaScript - fill out the text field with data entered

    Hello

    I am learning javascript and need help to put in place a script that will do the following:

    I have three text fields where users enter data. I would like to take this data and provide a summary in a 4th text field. If a field is null, it should be ignored.

    TextField1

    textfield2

    textfield3

    Summary data entered above must be posted in textfield4.

    Text1

    Text2

    Text3

    Your help would be much appreciated.

    Thank you!

    Varns

    Hello

    On the calculate event of the textfield4 put the following text (or something like that):

    var str1 = "";

    var str2 = "";

    var str3 = "";

    var str4 = "";

    If (TextField1.rawValue! = null)

    {

    str1 = TextField1.rawValue + "\u000a";

    }

    If (TextField2.rawValue! = null)

    {

    str2 = TextField2.rawValue + "\u000a";

    }

    If (TextField3.rawValue! = null)

    {

    str3 = TextField3.rawValue;

    }

    STR4 = str1, str2 + str3;

    If (str4 > "")
    {
    this.rawValue = str4;
    }
    on the other
    {
    this.rawValue = "";
    }

    You may need to adjust to your exact needs - good luck!

    Stephen

  • Navigation and call Javascript

    Hi all, I have a big problem. I want to use the Navigation to a URL and both want to call Javascript to close the browser. I used the code for this as follows:

    navigateToURL (myUrlPath, "_blank");
    ExternalInterface.call("saveglobalscore",score) ('closeWindow');


    But until the Flash navigate to another URL, external Interface calls for 'closeWindow' Javascript function.

    and because of this navigation will be lost and did not navigate to this URL.

    So please let me know how to get the navigation is Flash or not?

    Maybe you can use the external interface to trigger a javascript timer function that closed the first page.

  • JavaScript seems to be disabled in your browser... You must have javascript enabled in your browser to use the features of this site... How can I fix it

    JavaScript seems to be disabled in your browser... You must have javascript enabled in your browser to use the features of this site... How can I fix it

    Clear your NoScripts modules.

    Nancy O.

  • How to enable and disable a button depending on the value of a field

    Hello experts,

    I enable and disable a button depending on the value of a field.

    I did the following:

    in a trigger of on_new_form_instrance I put the following
    begin
         
    go_block('OE_HEADER');
    execute_query;
    IF :oe_header.status = 'BOOKED' THEN        
          SET_ITEM_PROPERTY('CONTROL.ACTION',ENABLED,PROPERTY_FALSE);
    else
         SET_ITEM_PROPERTY('CONTROL.ACTION',ENABLED,PROPERTY_TRUE);
    end if;
    
    
    end;
    the problem is that it works but does not change when my header_status value is changed.

    You have to put the same code in when-validate-item trigger of: oe_header.status...

    and I think that this code should be trigger after query

    IF: oe_header.status = 'RESERVED' THEN
    SET_ITEM_PROPERTY('CONTROL.) ACTION', ENABLED, PROPERTY_FALSE);
    on the other
    SET_ITEM_PROPERTY('CONTROL.) ACTION', ENABLED, PROPERTY_TRUE);
    end if;

  • Enable / disable fields by selecting from the list

    Hey guys,.

    How can I make an option like < bool > with a list instead of a checkbox.

    Example of work in text QooQees Widget magic. I already asked this developer but got no answer.

    This selection in the list turns off the text field:

    Bildschirmfoto 2014-08-21 um 16.09.59.png

    And if you choose another option that it activates the text field:

    Bildschirmfoto 2014-08-21 um 16.10.10.png

    No idea how to do this?

    Unfortunately, it seems that it is a hole in the documentation, but the tag in lists also support the disableOptions attribute, similar to the way in which the tag of under the made. You can see an example in the section for its operation.

  • Disable "clickToEdit" for the input field text selection

    Hi all

    I use JDeveloper 12 c (12.1.2).

    I added an af:table with the editingMode = "clickToEdit."

    In the documentation at http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_table.html he was part of the behavior is "5.  Text entry field selection: when a cell contains a text input field widget, the text is automatically selected when the widget has focus. »

    Is it possible that I could disable or take action against this problem does not happen?  I tried to do a 'click' listener customer event, but my javascript skills are not so big so I don't know if I'm doing things.  I tried the selectionStart/end value, but it seems to do nothing.

    Any help/advice would be appreciated.

    Thank you

    Derek Hansen

    You can try to tie af:clientListener to each inputText component and listen to 'theme' of the ceremony.

    Then call javascript function similar to this:

    function unfocus(evt){
      var comp = document.getElementsByName(evt.getCurrentTarget().getClientId())[0];
    
      setTimeout(function(){
          if(comp.setSelectionRange){
              comp.setSelectionRange(0,0);
          }
          else if (comp.createTextRange) {
              var range = comp.createTextRange();
              range.collapse(true);
              range.moveEnd('character', 0);
              range.moveStart('character', 0);
          }
      }, 200);
    }
    

    Dario

  • Enable and disable the NIC with the Standard users

    Hi guys.

    We set up a phone book ad within our Organization. Additional client systems (Windows 7 and Windows 8) to the field. Domain users are accessing the system with the permission of standard users. I don't want to give administrator permissions. But the user should be able to disable and enable the network adapter without giving administrator permissions. Please suggest.

    Thanks in advance for the help.

    It is not possible.  Only an administrator is allowed to modify the configuration of systemic, such as activation or deactivation of the hardware components of the system.

  • Enable and disable the item based on the Condition

    Hi Experts,

    I work in the form of 10g, I conditionally.

    I have the block master detail.

    Master block contains sub elements.

    CUSTOMER

    Address (read only) - no database element

    PRODUCT GROUP (read only) - no database article

    Note: The CUSTOMER is LOV, when I select the customers, I'm failing address and product group.

    Block detail contains sub elements.

    DATE OF START OF BLOCK

    DATE OF END OF BLOCK

    REASON

    Note: when I opened form all fields of retail blocks are enabled

    Requirement:

    1. when I created new record, at the time where I select the customer name, Bill and product group will be by default, in the block of detail - I want to activate and deactivate the block start date based on the value of the product group.

    2 if I erase block master, I need to activate the block_start_date like back when the new form is opened

    3. when I search the data also, block start date must be enabled and disabled based on the value of the product group.

    Could someone help me the best approach to achieve so that she will have no side effects.

    Thank you

    801619 wrote:

    Hello

    Thank you for your response... I have tried code trigger after change of category of products below.

    If: blockname.product_group = "Aviation" then

    set_item_property ('block.block_start_date', enabled, property_false);

    On the other

    set_item_property ('block.block_start_date', enabled, property_true);

    end if;

    1. it is disable the Group field when I put the cursor inside if the product category is "Aviation", but I want it to be automatic at a time where it will default to the value of product category.

    2. If the master clear record, is not allowing return product group

    3 suppose that if enter new record category of products "Aviation", once I put the cursor inside, it's debilitating, let's say if I erase the main recording without saving the changes, it not again allows the Group of products, it is now status (disable) previous.

    4. in query mode, it is not disabling or enabling from a group of products.

    Help, please.

    Thank you

    Ok.

    1. put your code on this trigger after changing point that fills the default value in the product category.

    2. remove the trigger after change of product group.

    3 put the same code to trigger once - new - Record - Instance of the main block.

    Hope this helps

    Hamid

  • "Edit" model of the Web application, possible for the user to change the point of "Enabled" to "disabled"?

    I was wondering if it is now possible for a user to change a Web App element and changed to Enabled to disable?

    I would like users to be able to remove their own app web site elements, but deletion would mean he would disappear from the box of Directors (which is not good for us!), so is it possible for them to 'Turn off' an element of web application?

    Thank you

    I do not believe, but you can add your own custom field 'disabled' (say a Boolean field). Then when they click 'delete', it checks this field and submits the Boolean value True (1).

    Then you can omit under condition of any webapp element that has "Disabled" = 1.

    Client side, you can use JS or CSS, or if you use the liquid you could do this on the server side.

  • Client listeners who call Server on fields only listeners take account of changes made on the event field

    Hello

    I have this sample application:

    1. I have a view object with a view criteria added to my data model of the app module.
    2. Then, in a page fragment /, I created a table based on this view object, and drag-and - drop operation ExecuteWithParam binds variables to the page as input fields of text with clientComponent = 'true '.
    3. Next, I added a listener client in each of the fields of type keyPress entry to call the following JavaScript method whenever the user presses the Enter key:
    function handleEnterEvent(evt) {
                          var _keyCode = evt.getKeyCode();
                          //check for Enter Key
                          if (_keyCode == AdfKeyStroke.ENTER_KEY ){
                              var comp = evt.getSource();
                              AdfCustomEvent.queue(comp, "EnterEvent", {}, false);
                              evt.cancel();
                          }
                       }
    

    4. then I added a server listener to these same "EnterEvent" type text input fields to call a method in my grain of support, that basically runs the OperationBinding ExecuteWithParam programmatically.

    The problem:

    1. I type "123" in my it1 text entry field and press the Enter key. The operation is performed and the results of the table are filtered as expected with the view criteria.
    2. I then clear the value in my it1, change the cursor in my it2 of text entry (without pressing enter), type 'Hello' and press the Enter key. The operation is performed, but the results are incorrect - the results indicate values as if the value "123" was always filled the it1 (and respective value of binding).
    3. If I do the cursor resume my cleared it1 text input and press the Enter button, the results are now correct...

    It's like bind values are updated only when the client event is triggered in this specific field... How should it be properly implemented? What Miss me?

    Thanks in advance. Kind regards

    -Tiago Vidigal

    Try to set autoSubmit = "true" for the text input element

    Timo

  • Dynamic Actions disable button based on the text field

    Hello

    Sorry if this has already been asked but I checked and could not find a job.

    «I'm trying to disable / enable a button "view" among the elements of this region from if a text field has a value or.»  I created a dynamic action for this but its not working only partially.  I can get the button to be disabled or enabled when I leave the text field, but what I'm trying to do is to get the State of button to change as soon as I start to type in the text field or return to people with disabilities if the text is deleted.

    I don't know that I'm missing something simple and help you can give is greatly appreciated.

    I use APEX 4.1 and that's how I got the dynamic action implementation, I tried different but no event types to give them action I want.

    I also install an example (details below)

    Event - change

    Selection type - point

    Article (s) - P1_TEXT

    Condition - is null

    Real Action

    Action - disable

    Fires when the result of the event is - real

    Fire on the loading of the Page - Y

    Items affected - button

    Article (s) - P1_BUTTON

    Action of false

    Action - Enable

    Fires when the result of the event is - fake

    Fire on the loading of the Page - Y

    Items affected - button

    Article (s) - P1_BUTTON

    workspace - show_issue

    user_name - show_issue

    password - show_issue

    app_id - 61707

    http://Apex.Oracle.com/pls/Apex/f?p=61707:1

    It works as expected if you change the event of 'Change' for 'key version?

Maybe you are looking for