the value of a check box using javascript

Hi experts.

I have a button that displays or hide a region (which is actually a form of data entry with a couple of boxes and text areas). I can't send the form on this button is clicked, I chose the redirect URL and URL target, I used according
  javascript: $('#AddActivity').show();               // used to show the region. works perfectly
  javascript: $x(P3_Emp_Name).value = '' ;       //  used to set value of Emp Name text box to empty for new entry
  javascript: $x(P3_Emp_FullTime).value = NULL; // used to show check box 'unchecked'.............here is the problem. dont get an unchecked check box

  if tried following also

 javascript: $x(P3_Emp_FullTime).value = 'N' ; and
 javascript: $x(P3_Emp_FullTime).value = N;

 but nothing works. check box retains what ever value last was selected.

  
 
Please tell me how can I set the value of the checkbox to use 'unchecked' above excerpt of code.

Concerning

Try

javascript: $x('P3_Emp_FullTime_0').checked = false;
instead of
javascript: $x(P3_Emp_FullTime).value = NULL;

CITY

Published by: Anderson city on April 22, 2011 05:05

Published by: Anderson city on April 22, 2011 05:10

Tags: Database

Similar Questions

  • updated in real time of the values when a check box is selected

    Hello
    I have a form with elements of the address

    Physical street address, physical city etc etc.

    I have also the same for address Street, city ett etc. on the same entry form

    I want to include a checkbox which when selected fills the values of the mailing list
    list physical values. The box would be as ' select this option if the update to the post office
    the address is the same as the physical address '

    I know how to do this with a process and send the page. May I, however, when the box is
    selected, or at least define the display attributes for read only for items in the mailing address of the box is activated?

    Thank you very much

    Steve

    Steve,

    No problem.

    $x is a wrapper for the APEX to document.getElementById () JavaScript; It's a heck of a lot easier to simply use $x vs the longer string. Please keep in mind that it will be only when you include the JavaScript libraries of APEX, which, by default, are included with each page APEX.


    What about a book, Yes, I can offer a: Pro Oracle Application Express (http://www.amazon.com/Oracle-Application-Express-Experts-Voice/dp/159059827X) Chapter 8 covers Ajax Javascript, & this is where I would start.

    There are also a lot of other online resources, including this Forum, that can help you learn how to use JavaScript & APEX.

    Thank you

    -Scott-

    http://spendolini.blogspot.com/
    http://sumnertechnologies.com/

  • How to select the values for each check box in a group of records

    Hello

    I have a requirement in form 10g. In this form there are 10 records are display each record has a checkbox is there if I click on the check box save number one and number three and make some changes in the text field (field adjustment is the number data type) and then finally, I want to see the total a total amount called field.

    In this, my question is how to select specific to a group of records records? and finally these selected records are inserted in a table.
    Because I am not able to read these records at a time.
    Is there any table to define a record group to fetch each of them individually for example Rec [1] Rec [2]... like this if yes please suggest me the steps how to do this.

    Thanks in advance
    Prasanna

    Published by: user10315107 on December 17, 2008 23:44

    OK, so you want to shoe the total amount in the form itself (I guess that somewhere under the dashboard lines?).

    You can do this easily using formulat elements:

    1 create a new item in your block where the field amount is places, set "section of the database" on the 'No', 'calculation mode' to the 'formula' and the 'formula' himself to something like:

    CASE WHEN :BLOCK.CHECKBOXITEM=CHECKVALUE THEN :BLOCK.AMOUNT+:BLOCK.ADJUSTMENT ELSE 0 END;
    

    This formula returns 0 if the checkboxitem is not checked, otherwise the sum of amount and adjustment (of course you can adjust the names of elements and the value for 'Checked')
    2. place the element in the layout, if you wish.
    3. set the property "Query all Records" to "true" for your block elements, this is necessary for the calculation to work
    3 create a control block to keep summary article in a, "Single Document" set to 'True '.
    4. place a new element in this control block, set 'Calcuation mode' to 'Summary', 'Summary block' to your block elements, 'Summary point' in newly created formula section in the block elements
    and function of synthesis for the "sum".
    5. place the element in the layout

    She's.

  • Export the value zero (0) check box cleared?

    I have a form (Acrobat x) with checkboxes. I want to give rise to numerical values if checked or unchecked. I have this merged with other data and count the yes / no value is another problem. I did the exported value is 1.  If the checkbox is not checked 'No' has failed.

    Is there a way to make the value for a default value for the box unchecked to 0?

    Have you created the form in Acrobat or LiveCycle Designer? If Acrobat, the value of the field when disabled is 'Off' and it cannot be changed. If LiveCycle Designer, you should be able to set the value off to 0.

  • Updated based on the value of another check box a box

    We have a business rule that you have to follow.

    If the checkbox "Commit" is checked, then the "Preview" box should be checked.

    We want to handle this through workflow. Here is what we have done so far

    Workflow rule condition: FieldValue ("< bCommit_ITAG >" ") ="Y ".
    Action: Field Update - domain name * is set to forecast
    Value: [< prediction >] = 'Y '.

    Thanks for the help

    Brian,

    What you wrote should work, try Value is set to: = Yes.

    This must also be created in the Administration section under its not web services but the workflow, you'll get better answers.

    see you soon
    Alex

  • How to change the title for the alert box using javascript in Blackberry Z10?

    Hi all

    I developed 10 Blackberry webworks using the emulator to ripple and Blackberry Webworks SDK 1.0.4.11.In I use box alert and drop-down list in Javascript... When you use those Blackberry Z10... It displays the title for the alert "JavaScript Confirm" box and the "Select"dropdown list... So I want to change the title for these controls. Please me... Thanks in advance...

    Kind regards

    Marimuthu_P

    Alerts are native OS controls and you can not change the titles.

    You can use the WebWorks dialog API to create custom if dialog boxes:
    https://developer.BlackBerry.com/HTML5/APIs/beta/BlackBerry.UI.dialog.html

  • check box use the temporary Interface as a derived Table

    Hello
    in some guides and oracle websits, they want to check the box use the temporary Interface as a derived Table (Sub-Select).
    but the topology and datastor KM or target, I can't click on it...
    is - anyone know why? what setting I need to change?

    reason
    I want to create a temporary interface to use as a source.
    MySQL-> temp. interface-> join oracle of temp table. interface.

    Thank you..
    Michael

    Hi michael,.

    When you create a temporary interface, an interface in which the target data store does not exist, you can then use this temporary interface as a source in a different interface. Once you add the temp as a source interface on the mapping tab, select the temporary interface. You should see the check box in the Properties window of the Source to 'Use the temporary Interface as a Derived Table (Sub-Select)'. To use the code integrated into the interface of temp, check this box. The code will then be added as a subselect for this interface.

    See this post for more details: http://www.rittmanmead.com/2011/06/odi-11g-new-mapping-and-interface-features-part-1/

    Enjoy!
    Michael R.

  • JavaScript to display the output if multiple check boxes are selected

    Hello

    My PDF form has a number of questions about this, some of which are multiselect.

    for example

    Identify the colors of our company logo (there are three)

    Blue

    Red

    Green

    Orange

    Yellow

    Purple

    If they choose the good ones (blue, red and yellow), the script should display a 'Correct' output, if they look for something else, it should show incorrect. I have worked out how to do it for a collection of radio button, but may not know of check boxes.

    Any help would be greatly appreciated.

    Concerning

    I don't know, but see if it works for you: http://acroscript.net/pdf/demos/Adobe_Forums_1993380.pdf

  • Multi-case check checkbox using javascript

    I'm looking for a box create for the customer. There will be three opportunities on/off/neutral.

    Ontario should be a mark of 'Check' .

    The decision should be a "'Cross ' mark."

    Finally, for the State of NA, a selection "white" or "NA" for the third.

    I am unable to get any results. Could someone please provide me with a pdf of the sample or the code to make it work.

    If I understand your question, you want to scroll through the same box and want the icon in the box to change between the Coachman, cross and an empty box?

    If this is the case, I managed to get this functionality with this code in the change event of the checkbox.

    If (this.ui.oneOfChild.mark = 'check' & this.rawValue == 0) {}
       this.ui.oneOfChild.mark = "cross";
       this.rawValue = 1;

    }

    ElseIf (this.ui.oneOfChild.mark = "Cross") {}

       this.ui.oneOfChild.mark = "check";
       this.rawValue = 0;

    }

    (the check box should be setup as a 'power' with the 'balance sheet' checkbox Style check from the start).

    It is a bad/ugly way to do it, but this is the first that comes to mind for me. However, this will make you a few more questions if you have dependencies of the form of this box? You will have a "rawValue" for each State. But in this case, I would rather use the property 'ui.oneOfChild.mark' as an identifier of the State (or possibly set up a hidden numeric field that turns into a numeric identifier that changes in the event of real change.

    If this answer was helpful, please mark it as correct, and if something is weird or if you just have any questions about the code, please do not hesitate to ask.

    Best regards, Mattias.

  • How to calculate the sum (discount) when check box status = 'Y '.

    Hai.
    It's Vinet I want sum (disc) of particular elements check box STATUS = 'Y'
    I selected the quota_det TABLE data

    I have 5 codes elements
    SNO Agenda ITEMCODE QTY. BASIC PRICE DIS_PER DISK STATUS

    1 DELL 2 30000 60000 5 57000 D26OO Y

    2 HP HP2300 1 20000 20000 2 19600 N

    3 SAMSUNG SM560 2 5300 10600 3 10282 N

    4 NOKIA 5 25600 128000 3 125440 NK63 Y

    5 HTC 1 2300 2300 2 2254 HT25 Y


    ALL ARE ELEMENTS of DATABASE BUT STATUS IS NOT a basic ELEMENT of DATA THAT IS the POINT of the BOX

    VALUE CHECK = Y
    A VALUE WHEN UNCHECK = N

    IN above DATA I WANT ONLY ELEMENTS SUM (DISC) WHEN the POINT of the BOX CHECK THAT the SUM SHOULD BE APPEAR IN TOT_VALUE * POINT *.

    SEND ABOVE CODE REQUIREMENT WITH THE NAMES OF TRIGGER ITS URGENT...

    Published by: 988532 on March 22, 2013 22:27

    Hi Vincent!

    You can try this!

    Make another text point something as a disc_copy between the disc and on the same block
    below this text element properties
    1 piece of data: No.
    2. data type: number
    3 canvas: Null

    Create another element of text like total_discount below the properties

    1 piece of data: No.
    2. data type: number
    3 method of calculation: summary
    4. function: sum
    5. block of summaries: YourBlock
    6 point summaries: disc_copy

    If you are multi block record is then
    7. number of items: 1

    Set property YourBlock
    All records in the query: Yes

    Now, about the situation to apply trigger WHEN-CHECK-BOX-CHANGED and write below the code in this trigger

    if :YourBlock.status='Y' then
    
         :YourBlock.disc_copy:=:YourBlock.disc;
    else
         :YourBlock.disc_copy:=0;
    end if;
    

    Published by: XeM on 23 March 2013 12:06 AM

    Published by: XeM on 23 March 2013 12:07 AM

  • How to encode a calculation from a field value, and a check box?

    How to make a field to calculate a commission based on another field (we'll call it "Total amount" for this example) and multiply % according to a box.  I have 3 different series that are check boxes. Depending on whether one chooses a customer, "Total amount" would be multiplied by 8%, 3% or 0% to get our total commission

    Good point George.

    AdobNewbee, modify the script to be:

    Set the text field's custom calculation script

    var v = this.getField("Rate").value;
    var t = this.getField("Total_Amount").value;
    {if(v!=="OFF")}
    Event.Value = v * t/100;
    }
    on the other
    Event.Value = "";

  • How to return the value 0 for no data using the County?

    Hi all
    I used this query to count the number of records for each month of the year:

    SELECT DISTINCT COUNT (I.information_sid) COUNT, TO_DATE (TO_CHAR (INSERT_DATE, 'MM'), 'MM') MONTH

    INFORMATION I

    TO_DATE GROUP (TO_CHAR (INSERT_DATE, 'MM'), 'MM')

    ORDER BY TO_DATE (TO_CHAR (INSERT_DATE, 'MM'), 'MM')

    But this code returns no value for months without data
    I want to return the value '0' for any month of data. How, please?

    Note: I use reports 6i.

    Maybe this?

    SELECT SUM(CNT_REC) CNT_REC, MONTH
    FROM
    (
    SELECT COUNT(I.information_sid) CNT_REC, TO_DATE(TO_CHAR(INSERT_DATE,'MM'),'MM') MONTH
    FROM INFORMATIONS I
    GROUP BY TO_DATE(TO_CHAR(INSERT_DATE,'MM'),'MM')
    UNION ALL
    SELECT 0, LPAD(ROWNUM,2,0)
    FROM ALL_OBJECTS
    WHERE ROWNUM <= 12
    )
    GROUP BY MONTH
    ORDER BY MONTH
    

    No need to SEPARATE during the use of GROUP BY.

    -Clément

  • How ro read the value of a selectOneRadio in a Javascript function?

    I have a selectOneRadio, and when I change its value I need this value to something in a javascript function.
    I need the value real (ONE, TWO or ALL) to this function, but it seems that I only get the index of the selected radioButton (0,1, or 2)

    Here is my Page source:

    < af:selectOneRadio id = "typeRadio" label = "Type".
    clientComponent = 'true '.
    autoSubmit = 'true '.
    Binding = "#{bean." TypeRadio}.
    value = "#{bean." Type} ".
    valueChangeListener = "#{bean.typeChanged}" >
    < af:selectItem label = "First choice" value = "ONE" / >
    < af:selectItem label = "Second choice" value = "TWO" / >
    < af:selectItem label = 'All' value = 'ALL' / >
    < af:clientListener method = "setType" type = "valueChange" / >
    < / af:selectOneRadio >

    Here's my js function;

    function setType (evt)
    {
    typeComp var = evt.getSource () .findComponent ('typeRadio');
    If (typeComp! = null) {}
    alert ('type =' + typeComp.getValue ());
    type = compType.getValue ());
    do other measures and calculations
    }
    }

    The warning in bold shows me 0, 1 or 2 and not ONE, TWO or ALL.

    Am I missing something?

    Hello

    the selectOneChoice has a property "valuePassThrough". This true value

    Frank

  • How to validate and save the values to a combo box and two text boxes in flex4 mxml application with as3

    helllo all,.

    I'm working on the application web flex4 with as3.

    I have a doubt, I've created a mxml it has two text boxes, except the button and a combo box that is has two option as a percentage and the amount.

    my needs are I gave here.

    need 1: when I choose option amount that two text boxes does not have to be editable.when I select text tat box two percentage option will be editable.

    need 2: when I select the percentage in combox option and two text boxes are empty, and then click the button Save-> I want to display warning msg

    need 3: when I select the option amount combox and the two boxes are emptu click the button Save-> I don't want any warning messages.

    How to validate it and how to write backup for this function.

    any suggession or extract code is welcome.

    Thanks in advance,

    B.Venkatesan

    Looks like you are trying to do too much at once. Try to hang the events correctly

    The close event of the comboBox can do something like this

    protected function toggleTextEditing(event:DropDownEvent):void

    {

    If (this.optionCmb.selectedItem.label is "Percentage")

    {

    This.Text1.editable = true;

    This.Text2.editable = true;

    }

    Else if (this.optionCmb.selectedItem.label == "Number")

    {

    This.Text1.editable = false;

    This.Text2.editable = false;

    }

    }

    The button's click event can do something like

    protected function save(event:MouseEvent):void

    {

    If (this.optionCmb.selectedItem.label is "Percentage")

    {

    If (this.text1.text == "" & this.text2.text == "")

    {

    Alert.Show ("text is empty");

    return;

    }

    on the other

    {

    }

    }

    Else if (this.optionCmb.selectedItem.label == "Number")

    {

    }

    }

    If you can put in your entire code, maybe I can have a look to see if I can find something wrong with that.

    -Pramod

    http://www.flexmycode.com

  • How to get the values of two points separated in Javascript checkbox

    Hello

    I want to get the values of an element of the checkbox as a form of separted from the colon as what we get in the database. For example '10:11:12 '.

    When I tried to write a code like this it does not work. Please tell me where I'm wrong.


    function getValues (pcheckbox) {}
    cb_name = html_GetElement(pcheckbox+'_0').name;
    cb_array = document.getElementByName (cb_name);
    var val_str =': ';
    for (i = 0; i < cb_array.length; i ++)
    {
    If (cb_arraychecked)
    {
    val_str += cb_array [i] .value + ':';
    }
    }
    html_GetElement (P206_TEXT) .value = val_str;
    }



    I try to call the function getValues ('P206_CHECK');

    Thank you and best regards,
    Vikas Krishna

    Hi Vikas,

    Try this-

    (1) create a checkbox element called PI_CHK
    (2) in the Option of the attributes of the form element, type onclick = "getValues () '"
    (3) create a named text field point PI_TEXT

    Enter the HTML of the Page Header Section

    
    

    Concerning

    Paul

Maybe you are looking for

  • How can I manually add a URL and the password to the password list?

    Some sites prevent me to store the password in FirefoxPasswordlist in Firefox can be protected by a Masterpassword, I would appreciate the opportunity to add the PW in a manual way.It will help me keep organized like I have some somewhere registered

  • We were able to check your product

    Pavilion laptop dv6-2162nr - Windows 7   Hello I went to the HP support page to get a scan of my laptop, but got the message "We were unable to verify your product" - so I couldn't see what that drivers update for helping me connect to wifi in a café

  • the Dell inspiron e1505 screen sometimes darkens.

    the screen of my laptop will sometimes Dim, can you tell me why?

  • Can not downloard firmware for WRT54G V8

    When I go to the support area to download frimware upgrade 8.00.6 What happens as a .bin file. Y at - it something I don't get. How to extract information from a .bin file? I'm used to seeing 'Run' when I'm updating firmware or software. The system w

  • Windows live mail question

    I used to share my brother's computer. Now I have my own and have used windows live to keep the same email. If he removes now me as a user on his computer I will lose this email address/account? Since that was the original one I was enrolled on?