Conditionally disable the text box

I have a text box that I want to disable loading if another value of items is greater than 0.
I don't want to make the read-only text box, like this poster from right across the page.

I've tried several things, but to no avail. My last one was
<script type="text/javascript">
function disDescription() {
var aa = $v('P148_ITEM_A')
if (aa > '0')
$x_disableItem('P148_ITEM_B', aa);
}
<script>

onload="disDescription();

{code}

Cheers

Gus

Edited by: Gus C on Sep 28, 2010 7:58 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

Hello

Delete

onload="addLoadEvent();"

You don't need that when you use the addLoadEvent function.

And where you have this line? It is up to the Page HTML Body attributes, without the HTML page headers.
In any case, to remove it, you don't need it with addLoadEvent function.

Best regards, Jari

Tags: Database

Similar Questions

  • Gray out or disable the text box

    Hello

    I have a drop-down list called CN_Entry_Initials with options of a "C" or a "N". I also called Part_Number to enter a part number in a text box. I want the text box part number be grayed out or disabled until a "C" or an "N" was chosen out of the CN_Entry_Initials of the menu drop down. I have this operation, except that I can't add it to almost anything. I think it's something to do with the way in which I have if statement for this disabled text box, or do I have to change the touch of a button "submit it". Does anyone know how to fix this? Below is the javascript and the drop down menu code menu and the text of the box as well as to add it or submit button. There are additional stuff in Javascript I have on the page, but I don't need to worry about those things because they do not work properly. I have the code text box disabled in the upper part of the javascript in the verify() function code. Thank you.

    < SCRIPT LANGUAGE = "JavaScript" >

    <!-original: Wayne Nolting ([email protected])->

    <!-this script and many more are available free online to->

    <!-begin

    verify() function

    {

    If (document.getElementById('CN_Entry_Initials').value is 'C'

    || document.getElementById('CN_Entry_Initials').value == "N")

    document.getElementById('Part_Number').disabled = false;

    on the other

    document.getElementById('Part_Number').disabled = true;

    }

    {

    var PartNum = document. AddECNumber.Part_Number.value;

    var regularExpression = new RegExp(/[cC][0-9]/); regular expression to search for a letter C followed by a number

    If (RegularExpression.test (partnum) & & document.) AddECNumber.CN_Entry_Initials.value == "N" & & document. AddECNumber.Validation_Qty.value == "") {//this returns true if the entry passes the regular expression

    Alert ('enter an amount of Validation for this new custom');

    }

    Another yew (document. AddECNumber.CN_Entry_Initials.value == "N" & & document. AddECNumber.P_Drive_Docs_Initials.value == 'i') {//this returns true if the entry passes the regular expression

    Alert ("you cannot select 'i' for the docs to remove for a new game");

    }

    Another yew (document. AddECNumber.CN_Entry_Initials.value == "" & & document. AddECNumber.SW_Model_Only.value == '0') {//this returns true if the entry passes the regular expression

    Alert ("ECO type required - ew Select (N) or (C) Hanger for eco topic');

    }

    Another yew (document. AddECNumber.PNR_BOM_Change_Only.value == '1' & & document. AddECNumber.CN_Entry_Initials.value! = 'C' & & (document). AddECNumber.Release_Status_Initials.value == "U".

    || document. AddECNumber.Release_Status_Initials.value == "N")) {//this returns true if the entry passes the regular expression

    Alert ("ECO type required - select C Hanger for eco section and select N release status if PNR/BOM change only is Yes");

    }

    Another yew (document. AddECNumber.PNR_BOM_Change_Only.value == '1' & & document. AddECNumber.CN_Entry_Initials.value == 'C' & & document. AddECNumber.Release_Status_Initials.value == 'U') {//this returns true if the entry passes the regular expression

    Alert ("ECO type required - select C Hanger for eco section and select N release status if PNR/BOM change only is Yes");

    }

    Another yew (document. AddECNumber.Doc_Changes_Only.value == '1' & & document. AddECNumber.CN_Entry_Initials.value! = 'C') {//this returns true if the entry passes the regular expression

    Alert ("ECO" type required - Select (C) Hanger for eco section Doc changes only being Yes');

    }

    <!-ElseIf (text). AddECNumber.P_Drive_Docs_Initials.value is 'i')

    'Eco_search.cfm' = Self.Location; ->

    on the other

    {

    document. AddECNumber.submit ();

    }

    }

    -> End

    < /script >

    < name cfform = "AddECNumber" action = "add_new_ec_number_action.cfm" method = "post" > "

    < b >

    < class td = "├editer" align = "right" > change or new entry: < table >

    < td >

    < select name = "CN_Entry_Initials" id = "CN_Entry_Initials" onchange = "verify (); ">

    < option value = "" > select < / option >

    <! - FILL the BOX WITH P_Drive_Docs_Initials FIELDS - >

    < CFOUTPUT QUERY = "ShowCNEntryInitials" >

    < option value = "#CN_Entry_Initials #" > #CN_Entry_Initials #.

    < / CFOUTPUT >

    < / select >

    < table >

    < /tr >

    < b >

    < class td = "├editer" align = "right" valign = "middle" > part number: < br > < h6 > (25 characters limit) < / h6 > < table >

    < td > < input type = "text" name = "Part_Number" id = "Part_Number" maxlength = "25" size = "27" disabled = "disabled" > < table >

    < td > < textarea name = cols "Description" = "30" rows = "3" > < / textarea > < table >

    < /tr >

    < input type = "button" value = "Add" onclick = "verify (); ">

    < / cfform >

    Thank you.

    Andy


    Seems that the braces "{" Javascript function are incorrect, the audit function performs only the feature of toggling the Part_Number text box which is the reason why the alert function worked when you added it in here.

    What you can do is to create a separate function which just active / disable the Part_Number text box and add it to the onchange event of the area of selection.

  • How to disable the text box field

    Please help me out on the following points.

    How to turn off the text area in master form of master detail form

    1. you must mention in which case you want that a field should be disabled

    2. in my example there is an event based deactivation of elements - select list P18_ENABLE_DISABLE, try changing the values. It's exactly what you want. The only difference is that the calculation is triggered when key hidden form element is not null.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Turn off the text box with the value of the checkbox

    Hello people,

    I am trying to activate or disable the text box with the value of the CHECKBOX, I have got the same thing with the BOX of ELECTION, with the javascript as follows: -.

    HEADER HTML
    ----------------------
    < script type = "text/javascript" >
    function disableOnValue (o)
    {
    If (o.value == 'Y')
    {
    document.getElementById('P2_TEXT_BOX1').disabled = false;
    document.getElementById('P2_TEXT_BOX2').disabled = false;
    document.getElementById('P2_TEXT_BOX3').disabled = false;
    }
    on the other
    {
    document.getElementById('P2_TEXT_BOX1').disabled = true;
    document.getElementById('P2_TEXT_BOX2').disabled = true;
    document.getElementById('P2_TEXT_BOX3').disabled = true;
    }
    }
    < /script >
    ---------------------

    under region Source whose Point display is < b > before < /b > foot and sequence is the last sequence of the entire region
    ----------------
    < script type = "text/javascript" >
    If (document.getElementById('P2_RADIO_BUTTON_0').checked is true)
    {disableOnValue (document.getElementById('P2_RADIO_BUTTON_0')) ;}
    on the other
    {disableOnValue (document.getElementById('P2_RADIO_BUTTON_1')) ;}
    < /script >
    ----------------

    and finally, to the title of point RADIO_BUTTON, HTML Form element attributes: -.
    -----------
    OnChange = "JavaScript:disableOnValue (this); »
    ----------

    the thing above works very well with the help of the RADIOBUTTON, but I want to try same thing with the CHECK_BOX I also tried a few changes but did not have any success so if someone help out me even that will be great and appreciated!


    Thank you

    Kind regards
    Kumar

    I also have the following in the Footer region region:

    <script type="text/javascript">
    x($x('P12_CHECKBOX'));
    </script>
    

    This is just to make sure that the items are disabled when the page is loaded, because the checkbox is deactivated

    Andy

  • Conditional display in the text box based on the calculated value

    Hello

    I have radio buttons that each have a numerical value. For example = 1 A = 2 C = 0. In the example below, the total is equal to 5.
    examplescreen01.gif

    The sum is displayed at the bottom of the document and is passed to another text box:

    examplescreen02.gif

    Instead of '5' displayed in the text box on the right, it should display a "Control" Word like this:
    examplescreen03.gif

    The displayed word is based on the totals through this range:

    1-2 = 'absorbing '.

    3-4 = 'practitioner '.

    5 to 6 = "control".

    The script I used to pass the value from the left to the right text box in the chart above is:

    name of the field to text box;

    var cTextBox = 'Cabinet Talent strategy knowledge - total';

    get the value of the field with the name in cTextBox;

    var sTextBox = this.getField ("cTextBox") .value;

    Set the value of this field;

    Event.Value = sTextBox;

    That I need to add to this script to show one of the words, such as "control" above?

    I am a complete novice to scripting. I found the above script online and somehow got it to work.

    I thank very much for any help or pointers, you can provide.

    Best regards

    Chris

    Sorry, there were some errors in the code that I provided above. Try this:

    If (sTextBox > = 1 & sTextBox)<= 2)="">

    Event.Value = "absorbing";

    } ElseIf (sTextBox > = 3 & sTextBox)<= 4)="">

    Event.Value = "practitioner";

    } ElseIf (sTextBox > = 5 & sTextBox)<= 6)="">

    Event.Value = "master";

    } else {}

    Event.Value = "";

    }

    If it still does not respond, you can send me the file at [email protected] and I'll check...

  • the text box changes color when you type in a google search and the cursor and the text becomes invisible.

    When I open Firefox, a cursor appears in the search text box, but I have to click on it before I can enter text. When I click on the text box changes color (from teal'c white to a light color) and the slider and I type text is invisible.

    Which may be caused by protection of typing"Comcast constant guard.

    'Configure the Anti-keylogger settings'-> disable

  • When I print a table (multiple pages) the text box under the table seems to be moving under the table and prints with the table of this overlap. My only solution is to push the text box further down the page before printing... Any advice?

    Im having problems shaped a text box so that my table does not print right on top of it. I want it inside of my table (it's 'tems and conditions' budget)

    Any advice would be great.

    I face the same problem as well. Would like to know if there is a better way to get the text box to move with the table instead of the effect that overlap. Have to manually adjust the layout, whenever I want to get a reasonable print of a document (or export it to PDF) seems counterintuitive, especially when it causes the document seem ill-disposed on screen.

    I am running version 3.6.2 of the numbers in the case where that matters.

  • I am trying to disable the word box that appears when I run my mouse, literally, anything

    When I run my cursor over any file, image, the sentence, no matter what, a more detailed text box appears to the right of my mouse and I can't understand how to turn it off. It's driving crazy me, it's always in the way. My attention turned to the text box and distracting... Every time.

    See here:
     
     
     

    --
    db·´¯`·...¸><)))º>

    .

    "JPatarak" wrote in message news: 2bcc943f-a890-4a67-8c3d-03d7896288f7...
    When I run my cursor over any file, image, the sentence, no matter what, a more detailed text box appears to the right of my mouse and I can't understand how to turn it off. It's driving crazy me, it's always in the way. My attention turned to the text box and distracting... Every time.

    DB·´¯'·.. ¸ >-))) º > ·´¯'·.. ¸ >-))) º > share nirvana mann

  • How to disable the check box (line selector) in a tabular report of APEX

    I have a report in tabular form with checkboxes which is filled by a SQL query.  For some lines, I want to disable (or not) the box according to the value of one of the columns of that particular line (if the value of a column defined as Date is less than sysdate, I don't want to display the checkbox for that rank).  I tried to use the conditional display in the section of the column attribute of the checkbox, but I can't access this Date column that is currently selected in a view in the SQL source.  I used variables such as: name-of_column, V(':name-of_column'), but always get a NULL value for this column in the SQL code I'm trying code in conditional display section.  For this reason, my condition does not work correctly.

    What I am doing wrong?  Exceeds my correct approach?

    Hi Ajay,

    I don't think you can handle this with a conditional display, as that works on the column rather than level level line.

    The way I see it, there are two things you can do:

    (1) approach to sql, where youo make the checkbox in your query using apex_item.checkbox, see the documentation of oracle for detailed information on the use of the APEX_ITEM

    You'll end up with a query like

    Select case when YOUR_DATE_COLUMN<>

    then null

    else apex_item.checkbox2 (p_idx-online 1

    p_value-online YOUR_DATE_COLUMN

    )

    ,

    from YOUR_TABLE

    (2) an approach JavaScript in which you create a dynamic action check your date column in a table and when the need hides and disables the check box for that rank.

    First option is more robust, but it will take a little more work. Second option is faster to develop, but may have different effects on various browsers and browser versions.

    Regads,

    Vincent

    http://vincentdeelen.blogspot.com

  • Limit the text to the size of the text box in Acrobat Pro?

    Hello

    I am currently working on a PDF form in Acrobat Pro for a small company, and they asked if there was a way to limit the amount of text that you can put in each text box to the actual size of the box. For example, when entering in your information, the text should be limited to the size of the text box and allows more to be written after that. I already disabled 'Scroll long text' properties tab, but for some reason any it always scrolls when you type beyond the limits of the area. Is there a way to fix this?

    Hello

    You may need to limit the size of the text by making a right click on the text field, and then select Properties.

    The dialog box "Text field properties", go to the 'Options' tab and then enter the number of characters you want in the option "limit of characters.

    Check it out now.

    Kind regards

    Ana Maria

  • copy is break to the next page and don't sink to the bottom of the text box

    I have a document where text is decorated with style sheets and overrides are disabled, but the text is introduced on the next page, rather than sinking to the bottom of the text box. I've had this problem several times in the past but have never figured out how to fix the problem.

    Sometimes it can also happen without reason - simply because the story

    reestablish has no kick.

    If this is the case, of all the stories to recompose: Shift + Enter to open Quick

    Apply, and then by typing "recompose" should show the required element:

    "Recompose all stories." Sometimes white gaps in the

    at the bottom of pages (quite rare).

    Bonus question: does anyone know what is the difference between "redial".

    all the stories"and" recompose all stories immediately "is (since the two

    seems to work immediately!) ?

  • cannot delete the text box entry - break cp8

    I have two text input boxes and a button smartshape on a slide.

    Text entry areas require username, stores the responses into variables. The button moves to the next slide. I don't want the button to pause the slide, but not text entry areas.

    When I uncheck the 'pause after"in the properties of the input synchronization for each of the text boxes, the break is always carried out for each. In fact, icon pause shows still on the layer of the timeline for each as well.

    The result is that my slide stop 3 times instead of once:)

    It's Captivate 8, sensitive project.

    It is for some a bug in CP8, in previous versions you can change the time of the break, but you can disable it. Must be a design fault, using the same properties of timing for each interactive object to CP8 (to make it "clear").

    For me, it makes sense that you can't disable pause in BER, since it must wait for an input from the user. It's the same for question slides, no way to disable the pause, you can move only. For BER you can move with the synchronization properties, which is not yet the case for Question slides where you (still) that slide on the Timeline can move the point of interruption.

    Why should you get this button? If it is designed as a next button, do you want so that it can move without entries in of the TEB? Then set its action to 'go to the next slide", not to continue?

    Lilybiri

  • How to get rid of squatters data that appears in the text boxes?

    How to get rid of pre-selected information that appears as a drop down choice in the text box?  The data that I placed in the areas of text continuously appears as an option to select text box.  How can I prevent the previous data entries to appear in the future?

    I think you should maybe just disable the AutoComplete feature in Acrobat.

    Edit > preference > forms > AutoComplete and choose

  • How can I get student got points in the text box

    Hello

    My problem is

    a student has a 5 subject .is there sort of set the text boxes according to these subject.if all have topic 6 then 6 text box should appear.
    is this possible.please suggest me





    Thank you
    Nisha

    Published by: Nisha Rani on September 3, 2009 23:14

    Hello

    There are a number of topics? You can create a form on your table that has all THE topics on it and then use a setting of Condition to hide the ones you don't need.

    Andy

  • Reorganization of the text boxes so that they mix upwards or downwards

    Hello

    I'm not sure to understand what happens when the text inline boxes are dragged - I have 6 on a page that are the width of the page but different heights and I would like to re - order them so they mix it up or down depending on where I drag them, but at the moment they go to the bottom of the page or disappear completely I can't work on the behavior.

    I think there must be a way of formatting.

    Thank you

    James

    Select each text box and if you use v5 Pages, visit the reorder menu and text wrapping set to None. Now, the text box are not repellent, and you can position them as you please. If you always use the Pages ' 09 and then again, select each text box and the Wrap Inspector, deselect object causes wrap.

Maybe you are looking for