Show/Hide JSF field based on SelectOnceChoice using Model Driven List

Hello All,
I have a use case where I want to show or hide fields based on values populated in SelectOneChoice. I have View master and View Lookup, master has a field named product which displayed selectiononechoice of product name built using lookup view as accessor. I am storing id of lookup type inside product column. Based on a product name say "abc" I want to hide subsequent fields. Can anyone please tell me how to implement this?
I am using ADF 11g version 11.1.2.
Thanks,
Dipal

If I understand you correctly, you are trying to show/hide subsequent fields based on the value selected from a selectonechoice?
Did you try using partial triggers and EL for setting the rendered attribute on subsequent fields and setting autosubmit to true on selectonechoice?
Kristjan

Similar Messages

  • Showing/Hiding certain fields based on Radioset selection

    Hello all,
    I'm like to know whether it is possible to Show/Hide certain fields using a RadioSet selection as it is done in Forms in ADF UIX. Kindly go through this post.
    Showing/Hiding certain fields based on Radio Group selection
    kindly help me out on this.
    Thanks & Regards,
    Arun.V

    Hi Arun,
    Here is what I do with my checkboxes, but I think that the radiobutton will do the same:
    <af:selectBooleanCheckbox text="selectBooleanCheckbox 1"
                          label="Label 1"
                          binding="#{backing_page1.selectBooleanCheckbox1}"
                          id="selectBooleanCheckbox1"
                          autoSubmit="true"
                          immediate="true"/>
    <af:inputText label="Label 1" binding="#{backing_page1.inputText1}"
                          id="inputText1"
                          disabled="#{!backing_page1.selectBooleanCheckbox1.selected}"
                          partialTriggers="selectBooleanCheckbox1"
                          value="#{backing_page1.selectBooleanCheckbox1.selected}"/>

  • How to hide input fields on selection screen using variant attribute

    Hello all,
    I want to know how to hide input fields on selection screen using variant attribute conpletely.
    As you know, when setting the attribute of variant "Hide field" checked, the field is temporarily hidden, but when clicking "All Selections(F7)" button on the selection screen, the fileds become appeared.
    I want to hide the field completely. Di you know how to do ?
    Thank you for your support.
    Regards,
    Hideki Kozai

    Use this attribute hide field and save the variant. Then create transaction for this program setting default variant for parameter Start with variant . The user who runs it will have it by defualt set.
    Otherwise
    in PBO simply use LOOP at screen and output = 0 for this field. This will ensure that field is invisible in any case.
    Regards
    Marcin

  • How to show/hide individual radio buttons in a single radio button list

    Can I apply javascript to checkboxes in order to show/hide individual radio buttons in a single radio button list?

    Thanks, Niall,
    I'll give it a try . . .
    Yours,
    Robert Anderson
    SWRCB WebSupport
    1001 I Street
    Sacramento, CA 95814
    8th floor 59B
    (916) 341-5950
    [email protected]
    >>> Niall O'Donovan <[email protected]> 8/5/2010 1:47 PM >>>
    Hi,
    Yes, it can be done. You just need to reference the actual button, rather than the radio button group.
    It is best if you name the radio button group AND all of the individual radio buttons.
    If the radio button group was named "myRadioButtons" and the three rb were named "yesRB", "noRB", and "maybeRB". All of this is in the hierarchy.
    Then this script in the click event of the checkbox would work:
    if (this.rawValue == 1)
         myRadioButtons.maybeRB.presence = "hidden";
    else
         myRadioButtons.maybeRB.presence = "visible";
    Hope that helps,
    Niall

  • APEX4: Is it possible to show/hide a field on form based on Radio selection

    Hi,
    On a form, I've a radio group (with two values) and two select list. Based on the selection in radio group, I want to show/hide the select list.
    Like, when the user clicks Radio Group Value - RG_A, SL_A has to be visible, and when user clicks Radio Group Value - RG_G, SL_B has to be visible.
    Is this possible in APEX 4? How can I do it?
    Thanks for the help.
    --Hozy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    Yes, you can do it using Dynamic Actions.
    See this thread as well. APEX4: Populating fields from database based on the SelectList value
    In Radio Group you will need to identify the button clicked from its ID and / or value. Thats because the Radio Group Item creates as many IDs / Items as there are options P1_ITEM_0, P1_ITEM1_1, etc.
    Regards,

  • Show or hide form fields based on cfselect selection

    Hi,
    I'm using ColdFusion 9 and
    I want to show/hide a form field type=checkbox if an assigned value is selected in a dropdown list, but it doesn't work.
    I use a javascript function.
    My question is: Are there better possibilities with ColdFusion to do this or is Javascript the best solution???
    Here is my code:
    <script type="text/javascript">
        function show(){
            var select = document.getElementById('dropdownlist').selectedIndex;      
            if(select == 1) document.getElementById('area').style.display = "block";
            else document.getElementById('area').style.display = "none";       
    </script>
    <cfquery name="select_list">
    select * from table
    </cfquery>
    <cfform name ="form">
    <cfselect name="dropdownlist" onChange="show();">
        <option value="0">please select</option>
        <cfloop query="select_select_list">
         <option value="#select_select_list.id#">#select_list.name#</option>
        </cfloop>       
        </cfselect>
    <div id="area" style="display:none">
             <cfloop query="select_list" > 
             <tr style="display:none">
          <td>    
               <cfinput name="gsu"  type="checkbox"  value="#select_list.id#"> #select_list.name#
              </td>
         </tr>
             </cfloop> 
         </div>
    </cfform>
    Thank you and best regards!
    Claudia

    Okay, thank you for your answer.
    I changed the javascript function and replaced the <div> with the <table> tag. Then it works.
    Here is an extract of my code:
    <script type="text/javascript">
        function show(){
            var select = document.getElementById('dropdownlist'); 
            var strUser = select.options[select.selectedIndex].value;    
            if(strUser== 1) document.getElementById('area').style.display = "block";
            else document.getElementById('area').style.display = "none";       
    </script>
    <cfquery name="select_list">
    select * from table
    </cfquery>
    <cfform name ="form">
    <table id="area" style="display:none">
             <cfloop query="select_list" > 
             <tr">
          <td>    
               <cfinput name="gsu"  type="checkbox"  value="#select_list.id#"> #select_list.name#
              </td>
         </tr>
             </cfloop> 
         </table>
    </cfform>

  • Using Javascript to show/unshow a field based on input in another field

    I want to display/not display a field in a JSP depending on what is selected in another field.
    I am using <div></div> element currently which is displayed/not displayed using a Javascript invoked by the first field.
    the problem with div is that I have to put it inside a <tr><td> otherwise it doesn't work. This makes the field look aloof from the rest of the page, and is also not aligned with the other fields.
    Is there anything other than <div> that can be used? or is there a way to correct the look of the field inside a div?
    Thanks

    You shouldn't have to put it inside a <tr><td> to get it to work. I've done what you are trying to do with <span></span> and it worked fine. I haven't tried it with a <div> but I can't image why that wouldn't work. Maybe you could post your code.

  • Show/hide objects/fields in PDF application (form) ...

    Hello,
    I'm creating a PDF application (form).
    The layout is being done in InDesign then the fields/buttons/drop-down boxes are being added in Acrobat Pro.
    I have a situation in the application where the user will select an option from a drop-down menu ... let's say the options are "car" and "airplane". (These are just examples.)
    when the applicant selects "car" it should only show the following fields ...
    Tires
    Engine
    Fuel Economy
    When the applicant selects "airplane" it should only show the following fields ...
    Wingspan
    Max. Altitude
    Seating Capacity
    How do I do this? I only want the applicant to see/access the fields that are relevant to the selections they make earlier in the application.
    From what I've found online, "Java Script" is what I need to work with ... but I have no idea how that works.
    I have no ability to write code from scratch, but I have been successfull at modifiying existing code.
    Some examples or some code that I can copy/paste and modify would be great.
    Also, where do I go within Acrobat to access/modify the code?
    Thanks in advance!

    Start with this tutorial: http://acrobatusers.com/tutorials/js_list_combo_livecycle1
    ignoring the parts about LiveCycle/XFA forms. Here's a link to the second part:
    http://acrobatusers.com/tutorials/list_and_combo_in_lc

  • When i hide some fields from the Editform using javascript, what will happen to the fields that hve been hidden

    I am working on an EnterpriseWiki site collection, and when users edit the page properties as follow:-
    then will get all the fields inside the EnterpriseWiki content type as follow:-
    now i want to hide all the fields except the ; Title & Name, so i edit the EditForm and i add the following script:-
    <script>
    $('#formTbl tr').filter(function ()
    return !$(".ms-standardheader", this).text().match(/Name|Title/i);
    }).remove();
    </script>
    so currently when users edit the wiki page properties they can only edit the Name & Title, because the script hide the other fields.
    My question is what will happen to the other values such as the page content, assign to , etc that have been hidden.. I test this and seems that when editing the name and title the other values will not get effected which is what i need, but not sure how
    did SharePoint handle this, i was afraid that hiding the other columns will set their values as null or empty if the user save the editform with only the title and name inside it ? can anyone adivce on this ?

    Hi John,
    From your description, my understanding is that you are worried about the values of some fields
     will been saved as empty if you hide them in EditForm.
    If you hide some fields in EditForm, it means that you could not edit them. These fields’ values will not be changed after editing Title field or Name field. When you click Save button, they will be still the values before changing the Title field or Name
    field.
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]
    i found this very critical issue with hiding the fields from the edit form, now i wrote the following script inside the edit form , to hide all the fields except the Name
    <script>
    $(document).ready(function(){
    $('#formTbl tr').filter(function () {
    return !$(".ms-standardheader", this).text().match(/Name/i); }).hide();
    $('#ctl00_ctl40_g_6c7d849e_da6b_4138_be9f_b99bde542065_ctl00_ctl02_ctl00_ctl04_c‌ ​tl00_WebPartMaintenancePageLink').hide(); });
    </script>"
    . and now if I submit the editform (which only contain the Name) all the html tables inside the wiki page content will be removed.

  • How to hide a field based on the value of a field in a different subform - null check doesn't work!

    I'm using Javascript to set the actions. I need to hide a text field if the value of a field in another sub-form is null.
    - tried checking the value of the other field for null - doesn't work
    - tried setting a variable str2 where I know the value of the other field is available then checking that variable when I initialize the text field - doesn't work
    What am I missing?

    Hi.
    Try this in the originating sub form referring to the text field (X). 
    if (this.rawValue = 1)
              X.presence = "visible";
    else if (this.rawValue = null)
              X.presence = "hidden";

  • Trying to show/hide a region based on other DB content

    I am trying to get a date to show or hide based on the content of another date within the same record, but I don't know how to write the code for the bold compare bit of the show if, the bit after the !==
    Here's the code I have:
            <?php if ($row_rs_events['fld_eventsEND']!=="$row_rs_events['fld_eventsSTART']"){ ?>
    It's two dates for an events calendar list that I am building, and basically it works like this... IF I have a start date and an end date which are different (a multiple day event), then I want both dates to display, but if the start and end date are the same (a single day event), then I only want to show the start date.
    Multiple days event:
    From December 10, 2012 to December 15, 2012.
    Single day event:
    On December 10, 2012
    Can you please advise?
    Thanks.

    looks correct to me, except for the extra double-quotes:
    <?php if ($row_rs_events['fld_eventsEND']!==$row_rs_events['fld_eventsSTART']){ ?>

  • How to show a text field based on what is entered in a date field

    Hi there LiveCycle experts!
    I have a form with a text field that I want to show only if the value of the previous date field once entered is less than 1 month from today?
    Any help appreciated, been researching in vain for hours!!!
    Sarah

    Wow Steve - thanks so much this is so exciting I just love learning these new scripts.
    I assume I need to make the text field 'Hidden' - ?
    I seem to be struggling a little to get it working - are you able to have a quick squizz at my document - it is in the very early stages!
    Regards,
    Sarah Milne
    FACEBOOK : Join our  'BritBound Social Events' Group on Facebook to receive details of forthcoming social events...click here to join. 
    For a sociable & stress free arrival experience!
    BritBound London Office: Britain & London Visitor Centre, 1 Regent Street, London, SW1Y 4XT.
    Tel UK: | 0845 450 3536 | From OS + 44 (0) 20 7808 3815
    Tel OZ: | Sydney: (02) 8003 7651  | Melbourne: (03) 9005 8304 | Brisbane: (07) 3102 9766
    Tel NZ: | Auckland: (09) 889 3175 | Wellington: (04) 889 2015   | Christchurch: (03) 669 2032
    Website:        www.britbound.co.uk
    E-mail:           [email protected]
    Click Here to find out more about: | UK VISAS  | MOBILE PHONE CONTRACTS FOR NEW ARRIVALS TO THE UK  |  UK ACCOMMODATION  |  AIRPORT TRANSFERS  |  UMBRELLA COMPANIES   |  DISCOUNTED INTERNATIONAL BANK TRANSFERS  |  SOCIAL EVENTS   |  TAX REFUNDS  |  NATIONAL INSURANCE (NI) NUMBERS
    Disclaimer: The information contained in or attached to this message is intended only for the people it is addressed to. If you are not the intended recipient, any use, disclosure or copying of this information is unauthorised and prohibited. This information may be confidential or subject to legal privilege. BritBound cannot accept liability for any virus damage caused by this message. This documentation is for your general information, and is not to be construed as advice. Clients should not act on the information contained herein alone, and should seek independent advice if necessary.

  • Hide form field based on name that contains certain characters

    I think this is an easy one.
    We're looking for help with a script that will hide all instances of text fields that contain a certain value. We have a function running that applies to the same text fields, however, each text field had to be tagged with a number at the end. Also running with this is a custom save button that flattens the page and hides certain elements before saving out. The hide function works pretty straightforward with "this.getField… = display.hidden;". The issue is that we don't want to repeat this for every single instance of the text fields that share the same name.
    We need it look for every text box that has a similar title so for instance if we had multiple fields like this…  "my-text-field-01", "my-text-field-02" and "my-text-field-03" we want the script to look for the name "my-text-field" and hide all instances of that.
    Hope this makes sense, sorry, our programming skills are still amateur. Thanks in advance for any help.

    You can do that if you use a heirarchical naming convention. So instead use something like: my-text-field.1, my-text-field.2, etc.
    You can then hide them all like:
    // Hide all of the "my-text-field" fields
    getField("my-text-field").display = display.hidden;

  • How to show/hide sliders on a slider control using property nodes?

    If I have a slider with multiple sliders on it how do I change which sliders are visible using property nodes? The only property I have found is making the entire control to be visible or not.  This is a possible solution to have two different controls, one slider with only one slider and another slider with two sliders overlapped, but not desirable.
    I found on a thread in the forum that it is possible but the user did not provide any specifics about which property it was. (http://forums.ni.com/ni/board/message?board.id=170&message.id=181279&query.id=34404#M181279)
    I would appreciate an example VI if possible (Preferred version is 8.5 but versios 8.2, 8.0, and 8.6 are available to me).
    Thank you in advance for the help,
    Aaron

    Just make them transparent! Here's a quick draft.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    HideSliders.vi ‏20 KB

  • Need to hide the field based on input to other field on screen

    Hi All,
    I enhanced the std. infotype 1029.Now I need to display one custom field only if another custom field (check box) is enabled, otherwise no.
    I tried writtinf code in PBO of ZP102900 in subscreen 0200.
      loop at screen.
      if screen-name = 'fld1'.
        if 'fld1' = 'X'.                      -
    >if chk box is selected then it shud display the fld2 on the screen along with fld1
          screen-name = 'fld2'.
        endif.
      endif.
      endloop.
    But no results:-(
    Can you please help me out in this ASAP.
    Thanks in advance.
    Regards,
    Ashwini

    Hi All,
    Finally I got the results:-)
    Solution:
    in PBO module:
      LOOP AT SCREEN.
        if SCREEN-NAME = 'P1029-<FLD2>'.
          IF P1029-FLD1 = 'X'.
            SCREEN-ACTIVE = 1.
            MODIFY SCREEN.
          ELSE.
            SCREEN-ACTIVE = 0.
            MODIFY SCREEN.
          ENDIF.
        endif.
      ENDLOOP.
    in PAI module:
    LOOP AT SCREEN.
      if SCREEN-NAME = 'P1029-<FLD2>'.
          IF P1029-<FLD1> = 'X'.
            SCREEN-ACTIVE = 1.
             MODIFY SCREEN.
          ELSE.
            SCREEN-ACTIVE = 0.
          ENDIF.
      endif.
    ENDLOOP.
    Thanks for your valuable time.
    Regards,
    Ashwini

Maybe you are looking for

  • I can't use wi-fi and internet, why?

    I was given a phone BlackBarry 9780. But I can't use wi-fi and internet (I have them turned on, but it's useless). Could anybody explain me why is this situation?

  • Very low resolution previews using loupe in import dialog

    Hi, I had connected Canon 6D via usb to import photos to Lr. However in import dialog using loupe view I get very low resolution previews even if I zoom all way up. It doesn't make any changes in preview resolution, it's like 200x300 pixels at most.

  • Default ldap Admin user

    Hi, We are using ldap for creating oracle retail store inventory management users and creating store as well. I need to know that where can i find ldap admin user and what is the default ldap admin user after installing ldap ? Thanks Edited by: user1

  • How to uninstall downloaded apple folders

    How do I uninstall/delete the following folders from my software? I've downloaded them from Apple but they don't work to my expectations and make my Macbook slower than it used to be. The are in the Installations folder in my Software. SpeechRecognit

  • 3rd Monitor

    I was wondering if I could hook up a 3rd monitor to my mac G5 PowerPC (sounds ancient doesn't it...lol) but I want it to work independently where I can drag different applications into it....let's say I have safari, Logic, and reason?