Fields hide APEX 4.1 show based on the value of the checkbox/radio

I'm trying successfully, hide and show fields based on the value of a selected checkbox.  I use a dynamic action, but it does not work.

I followed the example in the is Oracle Apex 4 enable the following AJAX features? (IE without the written Javascript dev) - stack overflow

I even tried an option button, but it did not work.  I can not uncheck the option button.  What I am doing wrong?  Thanks for any help you can provide.

Hello

For example, the point of view refer Packaged application > application sample database > page 11

Kind regards.

GO

Tags: Database

Similar Questions

  • change the field type selection list of text based on the data in the other domain.

    Hello

    We have a requirement where we are looking to display the page as element select list or a free text field based on the value of the item to another page.

    Say, we have two fields

    Day:

    Products:

    If day = 'Monday' produced a drop in low field of another product would be a free text field.   Is this possible in APEX?

    This is the configuration I did.

    I used the field produced twice (as a text and list field select) as an element of a page., dependent on the value of the day I used the dynamic properties of actions to show/hide these fields.

    However, when I click on submit, it throws an error:

    ORA-06550: line 1, column 108: PL/SQL: ORA-00957: name of column in double ORA-06550: line 1, column 13: PL/SQL: statement ignored


    Kind regards

    Satya

    You can have both share the same database column, the process of the APEX DML does not know how to consolidate.

    You will need to add a calculation and determine the real value based on two fields, up to an only one mapped to db.

  • How to hide the object based on the checkbox with FormCalc

    Hello everyone - I am very new to FormCalc and struggling to find answers in the Help menu of Adobe Pro.  The shape that I create is long and based on the requirements of option.  Therefore, if an option is not necessary (check box) more of the data fields will not be displayed for the user.

    1: I can do this?

    2nd: it's the correct script:

    If (temp. RawValue is true)

    Then(LowTempLOFF.Presence == visible)

    on the other

    LowTempLOFF.Presence = "Hidden";

    endif

    in the example above my checkbox is named "Temp".

    the object to be hidden, a numeric field is named "LowTempLOFF".

    I've also tried '1' instead of 'True', and 'on' in vain.

    To add, I want the object visible screen only - not print.

    My current error States: the "Temp.rawValue" accessor is unknown

    Appreciate any help!

    You save the dynamic PDF form? Presence changes will not work unless the form is a dynamic

    PDF.

    Paul

  • Fill in the multiple fields based on the checkbox

    (other questions newb...)

    You want to fill several form fields from or not a checkbox is enabled.

    I now using scripts calculated in the work field. for example:

    If (this.getField("checkbox").value == "Off") {}

    Event.Value = null;

    } else {}

    Event.Value = "ABCXYZ";

    }

    However, it is possible to assign values only from the field box itself?

    Yes, you can do so from the MouseUp event of the checkbox field. It will look something like this:

    if (event.target.value=="Off") {
        this.getField("Text1").value = "";
        this.getField("Text2").value = "":
    } else {
        this.getField("Text1").value = "ABCXYZ";
        this.getField("Text2").value = "123456":
    }
    
  • JavaScript to remove the contents of the fields based on the checkbox disabled

    I'm writing a java script to delete the contents of the fields when a checkbox's checked to disabled.  I have a java script to fill in the field when the checkbox is enabled (which works perfectly).  But in the case where the user accidentally checks the field and wants to uncheck the box I would like the content of field that were initially filled from the first java script to be removed/disabled.

    Here is my code:

    Mouse Up Script for the checkbox (function() {}

    Do something if this check box is not selected.
    if(Event.Target.Value==="on") return;

    Copy the values from text previously filled in those other fields.

    getField("AP_Unit").value = Null;
    getField("AP_StreetAddress").value = Null;
    getField("AP_City").value = Null;
    getField("AP_Province").value = Null;
    getField("AP_ZIP").value = Null;
    getField("AP_Country").value = Null;

    })();

    Sorry it works... that make three equal signs "=" means?

    Here is my code

    If {(event.target.value==="Off)"}
    getField("AP_Unit").value =("");
    getField("AP_StreetAddress").value =("");
    getField("AP_City").value =("");
    getField("AP_Province").value =("");
    getField("AP_ZIP").value =("");
    getField("AP_Country").value =("");

    } else {}

    getField("AP_Unit").value = getField("HO_Unit").valueAsString;
    getField("AP_StreetAddress").value = getField("HO_StreetAddress").valueAsString;
    getField("AP_City").value = getField("HO_City").valueAsString;
    getField("AP_Province").value = getField("HO_Province").valueAsString;
    getField("AP_ZIP").value = getField("HO_ZIP").valueAsString;
    getField("AP_Country").value = getField("HO_Country").valueAsString;
    }

  • AutoFill based on the checkbox

    I'm relatively new to any idea in Javascript and Formcalc for forms of script. I created a form in need of some expensive attention. What I'm trying to do is autopopulate text fields based on the box, if it is enabled or not.

    Example: Once the property information - property name, street address, city, State and zip code (at the top of the form) are filled. If the box is checked in the section information of client (below), it will enter information according to the property information in the fields of the address below in the assigned text fields.

    Here is my code Javascript (not exhaustive):

    FLContract. #subform [0]. PayerName::calculate - (JavaScript, client)

    var a =' '

    If (this.getField ("CheckBoxPropertyInfo") .value == 1)
    {
    a = propName.Value
    }
    Event.Value = has

    Capture.PNG

    Enter this slot option 'Change' to the editor script for the checkbox control. just rename your fields appropriately. The second 'if' will reset the fields if they accidentally clicked on it. Name [1] is the field you want the box to be filled. 'Name' is the original field.

    If (this.rawValue == '1') {}

    this.resolveNode("Name[1]").rawValue = this.resolveNode("Name").rawValue;

    this.resolveNode("Address[1]").rawValue = this.resolveNode("Address").rawValue;

    this.resolveNode("City[1]").rawValue = this.resolveNode("City").rawValue;

    this.resolveNode("State[1]").rawValue = this.resolveNode("State").rawValue;

    this.resolveNode("ZipCode[1]").rawValue = this.resolveNode("ZipCode").rawValue;

    this.resolveNode("Country[1]").rawValue = this.resolveNode("Country").rawValue;

    }

    If (this.rawValue == '0') {}

    this.resolveNode("Name[1]").rawValue = "";

    this.resolveNode("Address[1]").rawValue = "";

    this.resolveNode("City[1]").rawValue = "";

    this.resolveNode("State[1]").rawValue = "";

    this.resolveNode("ZipCode[1]").rawValue = "";

    this.resolveNode("Country[1]").rawValue = "";

    }

  • Adding conditional based on the checkbox

    I have a field that adds the values of several other fields in the form.  The question I have is how can I add another 2 If a certain checkbox is visible and active?

    Hello

    You would need an if/else statement that looks at the value of the checkbox.

    This could be in the event to calculate the field which displays the answer:

    var tempAnswer = numericfield1.rawValue + numericfield2.rawValue + numericfield3.rawValue;
    
    if (checkbox.presence == "visible" && checkbox.rawValue == 1)
    {
         tempAnswer = tempAnswer + numericfield4.rawValue + numericfield5.rawValue;
    }
    
    this.rawValue = tempAnswer;
    

    You would need to change the object references, etc, but it should give you a structure to work with. We have examples here, some of which include objects with calculation scripts: http://assure.ly/eEPuCM

    Hope that helps,

    Niall

  • Advanced DataGrid - you click columns to hide/show based on the level of the child

    I have a Flex application that displays an Advanced DataGrid with three levels in the tree. The default view displays a single column of data. When a child on the floor of the tree is opened, two additional columns are displayed. I want these columns to stay open as long as any kid on the floor is open. I can't find a way to make it work - I can get the columns to be displayed when the user clicks on the 2nd child of level, but I can't find a away from keep them visible until the last child at this level is closed (see my attached code). Is it possible to loop through all the items in the Collection of data to see which ones is open and access data associated to each?

    Attached code (a few pieces that are not connected have been omitted).

    Help, please.

    Thank you.

    Found my answer on my own. I basically loop in the table in the ADG openItems, save the reference that corresponds to the lowest level that is open, then set visibility of each column based on this criterion.

  • Fill in the time field, based on the checkbox

    I am trying to find a script to do the following:

    If checkfield.rawValue = "1" (checked)

    timefield.rawValue = (current time)

    If checkfield.rawValue = "0" (unchecked)

    timefield.rawValue = 'null '.

    Any ideas or suggestions would be greatly appreciated.

    Thank you.

    Here's a modified version. Display BBS of the script added additional characters that mess. I moved the code to the change event of the box (I think it's nicer whne the user clicks to see the change rather than leave the checkbox). Validate the e Th message was because you had a pattern on the ground and time resulting does not match. I deleted the template as well as disable the validation script message.

    Paul

  • Calculation based on the checkbox is enabled?

    I have a form that sub total a group of field. Based on this subtotal I need to calculate a tax of 5% finance, if the box is checked, otherwise the financing costs are zero. Any help would be appreciated. Thank you

    You can use this script to custom calculation for the field of cost of funding. Of course, you will need to adjust the field names in the code to match those of your file.

    if (this.getField("CheckBox1").value=="Off") {
        event.value = 0;
    } else {
        event.value = Number(this.getField("SubTotal").value) * 0.05;
    }
    
  • Please help guys - hide fields based on the menu drop-down - javascript - output (adobe livecycle)

    I'm trying to hide certain fields in a form that is based on any value selected from a drop down menu, as shown in the image below. My main dropdown has values such as $25, $50 $ 75 and based on what value is selected, I want to hide two text field and date field, I created. Also when you select a value of $1000 I want to hide the ' field Manager ($ 25 - $ 100).

    hidefields.jpg

    That's how I would solve the problem. Note that the numbers used in the comparisons are links in the drop down menu.

    I don't know if it solves your problem exactly, but he should at least get you on the right track.

  • Display of the conditional field of Apex Oracle

    Hello

    I created two Wizard page in Oracle Apex.

    I have a table point and item_detail. For element1, I have a record of detail and item2, I have two detail record.

    Step 1: Choose the section that will fall to the bottom of the roll of the order of the day.

    On step 2: based on the record number of detail items, I want to display the text on step 2 fields. If item1 is selected in display 1 thenl, textdisplay1, and textfield1 to step 2 step. If item2 is not selected ' will display textfield1, textfield2 to step 2, textdisplay1, textdisplay2.

    SQL/pl/sql condition will be: select count (*) in the item_detail where item_id in (select item_id station where nom_element = 'provided to the step 1 "

    I want this dynamic ability to display fields or at least to hide textdisplay2, textfield2 based on condition of sql/plsql.

    Thank you

    Fields / display items (or hidden) by the result of the 'Condition' selection on the page field specification APEX / point. (You have all the tabs at the top: Identification, UI, grid, Label,..., Condition,...) Condition determines whether the field is displayed. Defaults to '-point not conditional ' but if you click on the drop-down menu, there are different conditions of 30-50. There are, there's NO..., never, always. If you select "PL/SQL function body returning a Boolean", it will add an Expression 1 box in the GUI where you can write a "starting...". End; "block to return TRUE or FALSE for the condition. It display if TRUE is returned, skins, if FALSE is returned. (Someone other chime in here if I missed something.)

    It is a VERY characteristic slick of APEX. The only addiitons I could ask would be: positive, negative and "do what I mean".

    Howard

  • fill a list based on a value from the drop-down list box

    Well, I know a way around it but its quite long with what I know. I worked on a better solution for a day now. So maybe (or likely) someone knows better. I'm trying to fill a drop drop down based on a user selection figure in a list of check boxes. I know I could create several drop-down lists and hide away them until the user changes the value of binding. But the dropdowns would consume a lot of space in my form design in liveCycle. So is there another way or I'm stuck he made a long journey. I also need to assign values to these elements, since they change because the values are used as item numbers later that fill a text/number field later in form as a list of materials.

    Tell me if I'm wrong, please (I'm new to all this)

    in the box in the click event

    If (this.) RawValue == 1)

    {

    dropDownList1.addItem ("item # 1", "value1111");

    dropDownList1.addItem ("item # 2", "value2222");

    }

    on the other

    {

    dropDownList1.rawValue = "null";

    }

    I'm sure that null is not good and I don't know that I have to set the drop-down menu to clear items on preOpen. Or maybe not. And there is a way to add items without the addition of a new right of the line? I'm on the right track?

    Hello

    Rather than having the script in each of the boxes, you can have the script in the event preOpen the drop-down list that leans on the boxes.

    I downloaded an example here: https://acrobat.com/#d=VwREjsMgvqXpVqPu54kSNw

    Take a look at the preOpen the dropdown event.

    // clear the dropdown displayed value and items
    this.rawValue = null;
    this.clearItems(); 
    
    // repopulate the items based on the checkboxes
    if(fruit.rawValue == 1)
    {
         this.addItem("Apples", "fruit_001");
         this.addItem("Pears", "fruit_002");
         this.addItem("Oranges", "fruit_003");
         this.addItem("Bananas", "fruit_004");
         this.addItem("Grapes", "fruit_005");
    }
    
    if(cars.rawValue == 1)
    {
         this.addItem("Volvo", "car_001");
         this.addItem("Ford", "car_002");
         this.addItem("Opel", "car_003");
         this.addItem("Toyota", "car_004");
         this.addItem("Nissan", "car_005");
    }
    
    if(counties.rawValue == 1)
    {
         this.addItem("Co. Tipperary", "county_001");
         this.addItem("Co. Cork", "county_002");
         this.addItem("Co. Dublin", "county_003");
         this.addItem("Co. Clare", "county_004");
         this.addItem("Co. Kerry", "county_005");
    }
    

    Hope that helps,

    Niall

  • How to hide/show a field based on the data from more than 1 field?

    Hello.

    I'm trying to hide/show a based on the data of field2 and field3, Field1

    in fact using dynamic measurements I can only hide/show Field1 Field2-based, but I need a combination, for example:

    If field1 = 'A' and field2 = 'B', then see the field3, other hide field3

    y at - it an easy way to do it.

    I use Application Express 4.2.4.00.08

    Thanks in advance

    Dynamic action

    On the changes

    jQuery selector: #P1_ITEM_1, #P1_ITEM_2

    Condition: JavaScript

    $v ('P1_ITEM_1') == 'A' & $v ('P1_ITEM_2') == 'B '.

    Real Action: show item 3

    Action of false: hide item 3

  • show/hide fields based on the drop-down list of choices

    I have a field from the drop-down list with three choices. Based on the selection, I need a specific text form field to appear and the others to stay hidden. (Or if it makes the code cleaner, the resulting field could be a drop-down list, too, with the selected choice.) I don't know Java well enough to extrapolate the code from the examples online and it fit my forms. I can provide an example of form. Thanks in advance for your help.

    There are ways to run this.  the easiest for you would be to add this script to the event (calculation of the Properties tab) to calculate the field that must be hidden.  Take notes, all "/ /" is some tips for you to understand the code.  You will need to put this script in all the areas you want to replicate the behavior, change the value depending on what you want to accomplish.  the word 'event' means myself to make you understand.

    If (this.getField("dropdown").value == 'put value here') {//replace "drop down" with the name of the drops}

    Event.Target.Display = display.visible;

    }

    else {}

    Event.Target.Display = display.hidden;

    }

    This works if you have a small amount of fields.  If you manage to have a large number of similar fields, let me know because there are other, faster ways.

Maybe you are looking for

  • HP mini 110 computer: enter the current password

    Hello! I have a problem with my computer hp mini 110. It asks me to enter the current password and I entered all the possible passwords that I could remember... The p/n is:-VA714UA #ABA. Model number: HP mini 110-1030NR. What should I do?

  • Black cartridge does not print.

    Model HP6510.  Black cartridge will not print computer or copy.    A new cartridge has been installed, but it prints just blank or a very light blue.  Yes, it is installed correctly.  The other three colors work very well.  Any help?

  • cRIO-9002 - sees in MAX but Can not control

    I have a cRIO-9002 with chassis cRIO-9201, I try to configure so that I can use it for a new project in the lab that I am working. So far I was able to get on our network and am able to see to the MAX; However, once I click on it in MAX, MAX is here

  • Latency on Vista Ultimate laptop problems

    Move to a higher RPM HDD and twice the capacity.  After several months, the machne displays the latency issues that never existing with the last disk.  Even if I have a large number of videos and documents on the machine, the total volume in percenta

  • How to stop windows 7 from automatically saving a copy of the file to the library?

    I have a desktop hp brand new high.  I installed Microsoft Office 2010.  Whenever I save a file, photo, etc, it saves a copy of the "library".  How it stop doing that?  I read about using the library and he said I could save a copy in the library, bu