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,

Similar Messages

  • 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

  • Is it possible to show/hide dynamically columns in RDLC form?

    We need to show/hide dynamically columns in our Report RDLC form based by the user desire needs.
    We need by the predefined checkboxes to set which columns should be seen and which should be hidden.
    Is it possible in RDLC form to make it "show/hide columns dynamically" with any way?

    Depends on what you mean dynamically, you still need to press the view report button.
    What you can do is right click on the column you want to be able to hide/display in design mode,
    click "Column visibilty", choose "show or hide based on an expression" then in your expression base your true or false on a boolean parameter for each column

  • Possible to show/hide sections in a table?

    Hello all,
    First post here. I've only started using LiveCycle Designer a few weeks ago, never knowing that it came with my Acrobat. I've been busy converting forms we use in our business into pdf versions that can be filled, and created some with simple scripting etc.  Anyway my most ambitious effort to date is to create a gross payroll calculator in which I would enter the total hours worked for each employee and the gross payroll is calculated. The calculations I have no issue with.
    I am using a hidden "config" subform (thanks to kingphysh for your easy and simple example!) to store the employee names and payrates and the department they work in.
    My main form, the one on which I am entering total time for each employee, consists of a table with a section for each department. Thus I can put all employees in a department in one section of the table and then easily do subtotals by department etc.
    Table1
    Table1.Section1
          Dept. Name | Emp. Name | Pay Rate | Total Hrs | Gross Pay|  <-- this would be one row in the section     
    Table1.Section2
          Dept. Name | Emp. Name | Pay Rate | Total Hrs | Gross Pay|
    Table1.Section3
          Dept. Name | Emp. Name | Pay Rate | Total Hrs | Gross Pay|
    and so on. Each section also has a footer row for subtotals.
    This form will be used at various physical locations and not every location will have all departments. Thus I want the table to show only those sections for which the corresponding departments exist based on a selection (checkbox) that is on the hidden config page.
    Its not so much the actual scripting thats a problem, but where to put the script. Should I use a Table1 event or the checkbox event? I've tried both but neither works as desired. Or should I use an event for the individual rows in the section itself?
    Any pointers and suggestions will be greatly appreciated!
    Harry.

    Niall,
    Many thanks for all your help. With the examples you provided, I have been able to almost finish the form and learned a little bit along the way too.
    There are a couple of things still vexing me though.
    My form's hierarchy is as follows:
    page1 (flowed)
         - wrapper (flowed)
              - form1  (positioned)  <-- sub-form (form on which data is entered and calculation results are displayed_
                   - table1
                        -HEADER
                        -Section1 - bodyrow
                                       - section1 footer
                        -Section2 - bodyrow
                                        - section2 footer
                        -FOOTER
              - config   (positioned) <--  sub-form (normally hidden "config" form which stores employee data - accessed by password
                   - table1
    The sub-form form1 contains a table with six sections. Each section represents one department and has  body rows and a footer row for subtotals.
    the number of body rows in each section can vary with the number of employees in the department.
    I have two issues remaining with the form and it will be done. Hopefully you will be able to point me in the right direction.
    1. Pagination - in the form, I have set page1 to "flowed". wrapper is also flowed. form1 is positioned.
         I would like to be able to set it so that if any section is going to be split, it would go onto the next page.
         The header should be repeated in each page. Each section footer should be with the section, and the Table footer should be on the last page.
    2. Column Subtotals
         I have set the form to be as general purpose as possible. Thus it can take time totals in either decimal or HH:MM format. I am having trouble adding columns of time totals in HH:MM format.
    For example, given 3 time totals (all are in text fields):
    10:35
    15:59
    03:24
    I would thing the best way to do this is to parse the strings and add the minutes and hrs separately and then depending on the total of the minutes, use the floor and mod functions to get the correct total. I just can't get it to add the columns at all.
    This is the code I am using to add the column:
    if (_FD.count gt 0) then   //make sure at least one body row exists in this section
    for i = 1 upto (_FD.count) do
    mins = Sum(Right (FD[i].fdr_tot[i], 2))        // FD is the row and fdr_tot is the cell in the row which is to be included in the calc.
    hrs = Sum(Left (FD[i].fdr_tot[i], (Len (FD[i].fdr_tot[i]) - 3)))
    endfor
    endif
    I've tried using the code below as well to no avail.
    mins = Sum(Right (FD[*].fdr_tot[*], 2))
    hrs = Sum(Left (FD[*].fdr_tot[*], (Len (FD[*].fdr_tot[*]) - 3)))
    Any suggestions will be greatly appreciated.
    Thanks.

  • SP2013 Is it possible to show/hide columns based on column selections?

    SharePoint 2013
    I have a lists with a school district selection choice column (refer to as column A). Then I have three other columns with schools based on district. What I would like to do is only show schools in a certain district based on what district
    is selected in column A. Can anyone tell me if this is possible and if so, how can i acheive it?

    It generally takes a little script to get the cascading right;
    http://sharepoint-works.blogspot.ch/2012/02/cascading-dropdown-or-filtered-values.html
    https://www.youtube.com/watch?v=70-hXWY6ARY
    InfoPath is another possibility. Are you using that?
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP

  • Is it possible to show/hide a result text field only if another Text field is visible and has content?

    Hi
    Please could someone tell me if it is possible to make a text field visible only if another text field is visible and has content?
    I have this which works for the content part, but sometimes the field is hidden, so the script must not apply.
    var v1 = getField("Text1").value;
    event.target.display = v1 !== ""  ?
    display.visible : display.hidden;
    What I need is something along the lines of:
    var v1 = getField("Text1").value;
    event.target.display = (v1 !== "" && v1!=="Hidden") ?
    display.visible : display.hidden;
    Thanks for any advise.

    Thanks for the hints which led me to the right solution. I created a query to check if the trigger for the visibility was there or not, and this works. The script I have used is:
    var v1 = getField("Text1").value;
    var v2 = getField("Checkbox").value;
    var v3 = getField("Text2").value;
    event.target.display = (v1=="" || v3=="" && v2=="On" ) ?
    display.visible : display.hidden;

  • Show/hide in an ADDT form

    has anyone successfully used a show/hide script of any kind in an ADDT form?
    What I'm trying to do is, I've got Yes and No radio buttons.  If Yes is clicked, a text box appears in the row below.
    If No is clicked, no change occurs.
    I had one that was working but now all of the sudden it is no longer working.  What happens now is when you arrive on the page, the text box that is supposed to be hidden, is visible.  However, when you click No, it disappears and if you click Yes, it reappears.
    Below is the code.  I'm thinking there must be a conflict between the javascript code below and ADDT.  Any help is appreciated!  Thanks!
    <SCRIPT LANGUAGE="JavaScript">
    function showhide1(id,str)
        if (document.getElementById)
            obj = document.getElementById(id);
            if (str == "show") //obj.style.display == none
                obj.style.display = "";
            else if (str == "none")
                obj.style.display = "none";
    </script>
      <tr><td align="right">Will anyone in your party require translation services at Open House?</td> <td> <input type="radio" name="translation" value="Yes" onClick="showhide1('display','show');">Yes<input type="radio" name="translation" value="No" checked  onClick="showhide1('display','none');">No</td></tr>
            <tr id="display"><td align="right" > In what Language? </td> <td> <font color="red">*</font> <input type="text" name="language"></td></tr>

    OK, I added a function that fires on page load so that the conditional row will be displayed if the Yes radio button has been checked.You should now remove the CSS rule for the conditional row. I tested the code with Firefox 3 and IE8 and it works but it is by no means complete.
    <script type="text/javascript">
    window.onload = showRow;
    function showRow() {
    if (document.getElementById("radioYes").checked)
    {document.getElementById("display").style.display = ""}
    else
    {document.getElementById("display").style.display = "none"};
    function showhide1(id,str)
        if (document.getElementById)
            var obj = document.getElementById(id);       
            if (str == "show") //obj.style.display == none
                obj.style.display = "";
            else if (str == "none")
                obj.style.display = "none";
    </script>
    The HTML code for the two table rows should now be:
    <tr><td align="right">Will anyone in your party require translation services at Open House?</td>
    <td><input name="translation" type="radio" onClick="showhide1('display','show');" value="Yes" checked="checked" id="radioYes">Yes
    <input type="radio" name="translation" value="No" id="radioNo" onClick="showhide1('display','none');" >No</td></tr>
    <tr id="display">
    <td align="right">In what Language?</td>
    <td><font color="red">*</font>
    <input type="text" name="language"></td></tr>

  • 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

  • How to hide one block of data based on Filter selections

    Hi,
    I have a requirement where I should show only one block based of filter selections provided at the Query Level.
    How can I achieve that?
    Regards
    Shirley

    Lets say you have a optional filter and you want to show block 1 if value are inserted and block 2 if no value selected.
    For this You can create a variable status =IsPromptAnswered("") it will return 1 if prompt is answered.
    In block property go to the hide if below formula is correct and for block 1 give   status =1 and block 2 give status=0
    I hope this will help.

  • Is it possible to show/hide a layer in all the files in a book?

    Hi,
    I have 5 catalogs organized in a book, every is at 10 languages, every language is at separate layer. Every book has between 30 and 80 Indesign documents.
    I need to edit and print 4 of those languages and switching manually viability of the layers don't look like a good idea to me because of the possible mistake.
    Is there a way switching layers/languages to happen in same time?
    The names to layers are same in all documents.
    Thank you in advance!

    M Blackburn wrote:
    Synchronize Options does not include layers. I would guess that you would have to use Conditional Text to each layer -- could be a lot of work after the fact. If no one else posts a more helpful response, you may want to ask in the Scripting Forum.
    I haven't tested it, but it might be possible to ignore or hide the layer(s) in the PDF you distribute or print. Worth a try.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Dynamically show/hide regions out of the application workflow

    hi,
    is it possible to show/hide regions of a page dynamically with a "select list with submit" item?
    regards

    Hi,
    Do you mean "Conditionally display" items based on the value of a Select List with Submit?
    Andy

  • 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}"/>

  • Show / Hide characteristic in Bex Web

    Hi,
    since we use a fixed Template without the possibility to choose the characterstics / key figures from the
    Navigational Menu the question is if its possible to show / hide a characteristic in Bex Web via a button in the template.
    Thanks for help,
    Marco

    Hi Marco,
           That functionality is not present in the Button. But there is a way to acheive this.
            All you need to do is create two different queries, one showing the characteristics and other query without characteristics(hiding the characteristics).
           Then do the following steps:
    1. Goto Design mode and Place a button For Showing the Characteristics.
    2. Then in cmd type, choose 'Data Provider Specific Command'.
    3. In the Next window, choose 'Assign Query' and select the query that show the characterisitcs.
    4. Then give finish and give the Description as "SHOW CHARACTERISTICS".
    5. Then place another button in for hiding the char.
    6. Perform the 2nd and 3rd steps, but while selecting the query chose the one that hiding the characteristics.
    7. Then give the Description as "HIDE CHARACTERISTICS".
         So, if you click the SHOW button, it will show you the query that displaying all the characteristics and vice versa if you click the HIDE button.
         It will help you to solve the issue. Let us know if any further issues.
         Assign points if it helps you.
    Regards,
    Yokesh.

  • Show/ Hide Tables in SSRS based on Multiple Parameters

    Hi
    Is it possible to show/ hide multiple different tables based on a multivalued parameter?  I have 6 tables and I want 1 or 6 displayed dependent on what is selected from the multivalued parameter.
    When I add the IN operator and select multivalues, I get the following error:
    I have an expression set in the Visibility tab in the tablix to:
    =IIf(Parameters!Name.Value =
    "Name",
    false,
    true)
    and in the filters tab, I have a filter on the name so the data is filtered only by that name so it can display the different categories in the different tablix.
    Can anyone advise on how to achieve it so I can use the multivalued parameter option to display 1 or more tables?
    thanks!

    Hi
    Is it possible to show/ hide multiple different tables based on a multivalued parameter?  I have 6 tables and I want 1 or 6 displayed dependent on what is selected from the multivalued parameter.
    When I add the IN operator and select multivalues, I get the following error:
    I have an expression set in the Visibility tab in the tablix to:
    "Name",
    false,
    true)
    and in the filters tab, I have a filter on the name so the data is filtered only by that name so it can display the different categories in the different tablix.
    Can anyone advise on how to achieve it so I can use the multivalued parameter option to display 1 or more tables?
    thanks!
    =IIf(Parameters!Name.Value =
    Hi,
    Use Join function in the RDL and hide them for whatever values you want to.
    =Join(Parameter!paramname.value,",")
    Thanks,
    FunBI

  • Show/hide field options are grayed out

    If a drop down value is 1, I want to show field #1. If the drop down value is 2, I want to show fields #1 & 2. If the value is 3, I want to show fields # 1 2 & 3, etc. This appears not to be possible; a show hide rule is already created for value 1 and appears unavailable for a new rule for value 2. Any ideas for a workaround?

    Yes you can do this using the hide show logic. In the case you describe you want to use the if any rule rather than the if all rule. For drop down item one the logic is if any (1, 2 or 3) are selected show item one. For item two the logic is if (2 or 3) are selected show item 2.
    Andrew

Maybe you are looking for

  • Sales Order is cancelled but  still 1 sales oder item is  showing in MD04

    Hi, I have created one Sales Order. Due to some reasons i have cancelled that sales order. Out of 5 sales order items 1 item is still showing in MD04. I dont understand what has happened. Please guide me on the same. Regards, Amit

  • Button icons disappearing

    CP5 and we have buttons in the CPTX file.  When this publishes the button icon disappears.  The words are still there and when you select the area it does move to the appropriate slide. Any ideas?

  • Can you use GPS and get Live Traffic while using Turn By Turn?

    I can see the traffic if I am not using the turn by turn but as soon as I get directions Somewhere the traffic does not display. I have to cancel the navigation so it appears. Is this normal? It does this on both apple maps and google maps.

  • Deploying jdeveloper's jsf toplink ejb application to jboss4.0.4

    hi java/j2ee developers, we developed a application using jdeveloper ide using jsf,toplink and ejb technologies, when we deploying this application to jboss4.0.4 application server we are getting the following exception org.jboss.deployment.Deploymen

  • Enhancing a BW Generic Extractor

    I have built a generic extractor in the BW system and want to add some ZZ fields.  Where can I write the exit to populate the ZZ field?  I get the message "Program does not exist" when I go to for example: ZXRSAU01 or ZXRSAU02 in the BW system? Thank