Radio buttons with dropdowns?

I'm creating a form for my company's HR department, and I need some radio buttons with dependent dropdowns.
In other words, I'd like (for example) three radio buttons. No dropdowns appear until one of the buttons is selected, and then the appropriate dropdown appears. Is this possible? Or is there a better way to do this? I don't want the unselected dropdowns to be available.
I have Pro 9 for Windows and Pro X for Mac. I know virtually nothing about scripting, but I know that it can be done.
Thanks in advance for any help!
Theresa

Do I add this code to the group's action, or to individual radio button actions?
To each individual radio-button.
Do I make the dropdowns visible or hidden?
Their visibility will be determined by the state of the radio-buttons. As default you can set them to be hidden, when no radio button is selected.
Do I put any code in the dropdown properties, or just in the radio button properties?
Just in the radio buttons.
And when you say "embed this code at the doc-level," what does that mean?
Go to Advanced - Document Processing - Document JavaScripts...
Create a new script, remove the default text that appears in the window and paste the code I provided instead.

Similar Messages

  • How to differentiate between Radio Buttons with the same name?

    My form has two fields, to which I gave the same name ("Radio Button 1.0") in order to achieve mutual exclusivity.
    Now, I would like to use JavaScript to retrieve the value of one the two fields:
    var checkMark = this.getField("Radio Button1.0");
    if (checkMark.value == "Yes") {
    Questions:
    What is the proper way to inspect the value of a Radio Button? I have tried this:
    if (checkMark.value == "No") [...]
    but it doesn't seem to work.
    How can I tell apart 2 radio buttons with the same name?
    TIA,
    -RFH

    When Radio Buttons and Check Boxes are unchecked their value is "Off", so if you have "Yes", "No" buttons you will also encounter an 'Off" value. Now if you want to look at a given button, you will have to use the "isBoxChecked(nWidget)" method.
    nWidget:
    The 0-based index of an individual radiobutton or checkbox widget for this field. The index is determined by the order in which the individual widgets of this field were created (and is unaffected by tab-order).
    Every entry in the Fields panel has a suffix giving this index, for example MyField #0.
    Returns
    true if the specified widget is currently checked, false otherwise.
    Example
    var f = this.getField("ChkBox");
    if(f.isBoxChecked(0))
    app.alert("The Box is Checked");
    else
    app.alert("The Box is not Checked");

  • Radio Button with Submit Ready Only problem

    Hello,
    My radio button with submit ready only condition doesn't work correctly. When I click the a link on the first page
    it brings me to an update page. I have a radio button with submit, that won't open as a read only.
    It is being populated by SQL query, with the Null option selected. When I open the page I don't want the user to be able to edit the field unless they delete records associated with the field. Pretty much I want it to be disabled if the user has a record associated with it.
    Here are the queries.
    Source:
    SELECT OPLAN_IMPACTED_I
    FROM DFCY
    WHERE DFCY_SEQNO = :P12_DFCY_SEQNO
    Read only condition:
    SQL Exists query
    SELECT o.dfcy_seqno
    FROM oplan_impactd o, dfcy d
    WHERE o.dfcy_seqno = :p12_dfcy_seqno
    and :P12_OPLAN_IMPACTED_I = d.OPLAN_IMPACTED_I
    and :P12_OPLAN_IMPACTED_I = 'Yes'
    So when the page renders it's like you can change oplan, how do I make it read only when the page renders?
    Thanks,
    Mary

    Hi,
    If that is the source of the radiogroup, then it should be:
    SELECT OPLAN_IMPACTED_I d, OPLAN_IMPACTED_I r
    FROM DFCY
    WHERE DFCY_SEQNO = :P12_DFCY_SEQNOThis should return two values for each radio button - the displayed text and the returned value. If your radios do not have a returned value, then "Yes" will never be found. You can check this by loading the page and doing a View Source on it - search for RADIO and check what "value" attributes they have.
    Andy

  • Radio Buttons with images

    Hello everyone,
    JDeveloper 11.1.1.7.0
    Is it possible to have radio buttons with images instead of plain text?
    If not, are you interested in having this kind of feature? I am ;-)
    Thx.
    Filip Huysmans

    Hi Flip,
    The user when switching between modes will fire an event to the server. This even needs to be caught in a bean and set a variable's value to either true or false.
    Now you can treat "TRUE" to be in view and "FALSE" to be in edit mode.
    Depending on this images can be changed.
    Ex: your bean will be like
    class catchMode{
    private boolean mode;
    public void changeMode(ActionEvent ae)
    boolean modVal=this.getMode();
    if(modVal) //if mode is true; i.e. view mode
         this.setMode(false);
    else if(!modVal) //in EDIT mode
    this.setMode(true);
    //Generate accessors for mode
    in JSPX:
    <af:image source="#{catchMod.mode eq true ? 'view.png' : 'edit.png'}"
    Also the partialSubmit for the command component will be set to true
    Thanks,
    Pandu

  • Button with dropdown menu

    Hi,
    i am new at apex and i try to create a button with dropdown menu. any help? i dont want to use plugin but create a new one... i know that i need jquery and i have tha basic knowledge.
    thanks,
    Adven

    Hi,
    You could try to create a list with as template Pull Down Menu.
    Make sure that you create parent-child relations to get the pull down menu options.
    It also depends on the theme you pick up.
    Hope it works for u
    Sunil Bhatia

  • Click radio button with Apple Script

    I have something like this going on at the moment:
    tell application "Adobe Reader"
           activate
    end tell
    tell application "System Events"
           tell process "Adobe Reader"
                  click menu "file" of menu bar 1
                  click menu item "Print..." of menu "file" of menu bar 1
                  click radio button "pages" of window "Print"
                  --click button "Printer..." of window "print"
                  --click menu button "PDF" of window "Print"
                  --click menu item "Save as PDF…" of menu 1 of menu button "PDF" of window "Print"
                  --keystroke "D" using {command down, shift down}
                  --keystroke "G" using {command down, shift down}
           end tell
    end tell
    How do I click the radio button "Pages" in the print dialog box under "pages to print" with applescript?
    Thanks

    I ended up using key codes to tab using control down to get to it, which works for me.

  • Add radio button with script

    Hi All
    On my form i have RadioButtonList with one radio button in it. I want to do next, on button click new radio button into the RadioButtonList should appear. I tried something like this:
    var oNode = xfa.form.createNode("radioButton");
    questionary.#subform[0].RadioButtonList.nodes.append(oNode);
    but got an error "argument mismatch".
    Could you help me with this issue?

    Hi Mike,
    Thanks for the quick info.
    There is no text to edit. I have a box with a radio button at the far right side.
    When I right-click on the radio button I get the following options: Cut, Copy, Paste, Delete, Rename Object..., Change Object Type>, Send Backwards, Send To Back, Palettes> and Add to Library...
    When I tried the Radio Button in a document created in LC it workd as you mentioned. It is only when I import a PDF file.
    I figure I probably have something configured incorrectly. I am using PDF 1.7 (Acrobat 8) when distilling.
    I also noticed that some of the items in the Standard libarary are grayed out: Circle, Content Area, Image, Rectangle, Text, and Subform.
    Lee

  • How to check Radio buttons with Differfent button values

    Good Day,
    I am currently trying to write a script that would hide 5 of 6 radio buttons
    I have a radio button called "3. Transfer"
    with values of :
         Yes;
         Supp;
         Reg; and
         do_not_transfer
    as well I have a drop down called "REL.ITEM"
    with values of
              3(A);
              3(B);
              4(A);
              4(B); and
              4(C)
    I know how to get the value of the box and manipulate other fields
    like
    //START
    var transfer = getField("3. Transfer").value
    var relitem = getField("REL.ITEM").value
    if (transfer = "Yes" || transfer = "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
         getField("a. recommend").checkThisBox(0,true);
         getField("a. recommend").display = display.visible
        getField("a. I do not recommend").checkThisBox(0,false);
        getField("a. I do not recommend").display = display.hidden
    else if (transfer = "do_not_transfer")
         getField("a. recommend").checkThisBox(0,false);
         getField("a. recommend").display = display.hidden
         getField("a. I do not recommend").checkThisBox(0,ftrue);
         getField("a. I do not recommend").display = display.visible
    //END
    I would like to make it so that if REL.ITEM != 4(A); 4(B); 4(C) that the radio box's with values of "Yes", "Supp" and "Reg" are hidden while "do_not_transfer" is still displayed and checked.
    I've been going through forums, google and acrobat documentation and I can't seem to find what I'm looking for.
    Thanks for your help in advance.

    if (transfer = "Yes" || transfer = "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
    This should be:
    if ((transfer == "Yes" || transfer == "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
    Similarly,
    else if (transfer = "do_not_transfer")
    should be:
    else if (transfer == "do_not_transfer")
    In order to work with an individual widgets of a form field, obtain an object that represents the widget using the getField method as specifically demonstrated in example #2 in the documentation: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.476.html

  • How to display Radio buttons with default selection on

    Hi
    I want to display Radio buttons using jsf
    i have done it using
    <h:dataTable id="apartmentList" value="#{userBean.allApartmentList}"
                   var="apartments">
                   <h:column>
                        <h:selectOneRadio id="selectedApartment" onclick="javascript:setSelectedApartment(this);">
                             <f:selectItem itemValue="#{apartments.apartmentVO.apartmentId}" />
                        </h:selectOneRadio>
                   </h:column>
    inside a data table
    now when i click some page i want to display the radio's with default radio button selected
    also when i select one radio button and click on some command button
    eg:<h:commandButton action="#{userBean.setSelectedApartment}"
    the Radio button's Selection should not disappear
    i have written a javaScript
    function setSelectedApartment(oRadio)
              oForm = oRadio.form;
              elems=oForm.elements;          
              for(iIndex=0;iIndex<elems.length;iIndex++)
                   if(elems[iIndex].type == 'radio')
                        if(elems[iIndex].name != oRadio.name)
                             elems[iIndex].checked=false;
              document.getElementById("apartmentListForm:selectedApartmentId").value=oRadio.value;
    To check which Raio button is Selected
    How do i show the Default Selected button and How the selection should not disappear
    Can any one suggest me links or the solution to this problem
    Thank you
    Geetanjalee

    -set the value binding expression of select items to a request scope bean
    - on the page load event() ,do
    setdefaultval("ur default value")
    so each time on the page load it sets the default value. and you can get selected value by getdefaultval()
    --raju                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Radio buttons with same groupName in different MCs

    In my application, I have a set of three radio buttons that
    should all belong to the same radio button group. However, I need
    to put them into separate movie clips. Setting the group name for
    all three to the same string doesn't do anything (neither does just
    leaving it to default).
    Is there some way I can get this to work, or am I just going
    to have to work around it?

    Here is some sample code to explain what I am trying to
    do:

  • Radio buttons with validate item trigger

    hi,
    how can execute this trigger
    I am completely new in oracle
    would it be like this?
    using trigger when_radio_changed
    >
    declare
    quantityA number;
    begin
    IF :radio_button1=1 THEN
    SELECT quantity_on_hand
    into quantityA
    FROM INVENTORIES
    WHERE Product_ID = :Product_ID;
    IF :quantity > QuantityA THEN
    MESSAGE ('the inventory is not enough');
    raise form_trigger_failure;
    else
    null;
    END IF;
    Exception when no_data_found then
    message('Invalid product ID');
    raise form_trigger_failure;
    end ;
    end if;>
    thank you very much

    Hi,
    if five radio buttons are in a single group , you need to write only one trigger
    when-radio_changed
    syntax
    Declare
    v_local_varaible <datatype>;
    Begin
    If :radio_group:=1 then
    elsif radio_group=2 then
    elsif  radio_group=3 then
    elsif radio_group=4 then
    elsif radio_group =5 then
    end if;
    end;

  • Radio button with javascript - - Please HeLP !

    Hi,
    I have the following code
    My question is:-
    Q : Clicking on Submit button. gives a javascript
    message "Please make a selection" even though when I selected a radio button
         I have haspmap which displays possible answers to a question in a radiobutton type. When submit is prssed, I like to check whether a selection is made or not. and if not, I want a message shown. And when selected. I want page to prcede to processSurveyInfo.do
    Please help
    <script language="javascript">
    function checkRBtn()
         var name = document.forms[getNetuiTagName("studentmultpChcform", this)][getNetuiTagName("rbtn", this)].value;
         if ((name==null) || (name=="Undefined")) {
         alert("Please make a selection");}
         else {
         document.forms[getNetuiTagName("studentmultpChcform", this)].method="POST";
         document.forms[getNetuiTagName('studentmultpChcform', this)].action="<netui:rewriteURL URL="/TrainingActivity/Administration/SurveyFile/processSurveyInfo.do" />";
         document.forms[getNetuiTagName("studentmultpChcform", this)].submit(); }
    </script>
    <table align="center">
    <tr>
    <td>
    <netui:button value="Next-->" type="submit" styleClass="commonButtons" onClick="checkRBtn(); return false;" tagId="nq"/> </td>
    <td>
    <netui:button value="Finish" tagId="finbtn" action="fwdfinish"/> </td>
    </tr>
    </table>
    <table align="center">
    <tr>
    <td>
    <netui:button value="Next-->" type="submit" styleClass="commonButtons" onClick="checkRBtn(); return false;" tagId="nq"/> </td>
    <td>
    <netui:button value="Finish" tagId="finbtn" action="fwdfinish"/> </td>
    </tr>
    </table>
    please help me out.
    Thanks
    -Raza-

    You need to write a custom script and it's location will depend upon when you want the script to execute.
    Radio Buttons and Check Boxes have a string value of "Off" when none have been selected and take the value assigned to the field when checked.

  • Displaying radio buttons with dynamic subforms between 2 radio buttons

    I am very new to Adobe Designer/Form Server and had the following question.
    Our form is going to have the following display
    Radio A
    Radio B
    Radio B1
    List of text boxes
    Radio B2
    Radio C
    Radio C1
    List of text boxes
    Radio C2
    When the form is first displayed, user sees Radio A, Radio B and Radio C, right below each other. When the user selects Radio B, Radio B1 and Radio B2 should appear, and the Radio C should 'slide' down to accomodate Radio B1 and B2.
    Similarly, when the user clicks Radio B1, List of text boxes should appear and Radio B2 should 'slide' down to accomodate those text boxes.
    Is this possible? Can anyone please send me a sample code/design?
    Thanks

    Well I got the form to work by copying the Options List Java Script code in change to docReady and adding if(this.rawValue==0).  This produces the result that I need.
    To clean this up I would like to put this code in a Script Object so I can use the same code in both change and docReady.  I’m not a programmer so I’m not sure what additional code I have to put in the Script Object and what code I have to put in change and docReady to use the Script Object.  Any assistance would be greatly appreciated.
    Thank you.

  • Dynamic table with radio buttons

    I need to load a dynamic table with radio buttons that allow
    the user to select an item in the table. I need to have it add a
    radio button with a unique identifier for each table item.
    For example: the table will load all of the seminars
    locations available in a certain state, the radio button will allow
    the user to select the city in which they would like to attend and
    that value will get passed to the registration page. The value of
    each radio button would be equal to the location_id in the database
    for each of the locations in the table (The table includes the
    date, day, venue, address, hotel info, etc. details for each city.)
    When I add dynamic radio buttons and set the value to the
    location_id in the database, it allows the user to select multiple
    radio buttons. I cannot find any information on how to
    resolve.....??
    Any help is appreciated.

    beanieboo wrote:
    > I need to load a dynamic table with radio buttons that
    allow the user to select
    > an item in the table. I need to have it add a radio
    button with a unique
    > identifier for each table item.
    >
    > For example: the table will load all of the seminars
    locations available in a
    > certain state, the radio button will allow the user to
    select the city in which
    > they would like to attend and that value will get passed
    to the registration
    > page. The value of each radio button would be equal to
    the location_id in the
    > database for each of the locations in the table (The
    table includes the date,
    > day, venue, address, hotel info, etc. details for each
    city.)
    >
    > When I add dynamic radio buttons and set the value to
    the location_id in the
    > database, it allows the user to select multiple radio
    buttons. I cannot find
    > any information on how to resolve.....??
    > Any help is appreciated.
    Give each radio button the same name
    <input type="radio" name=theLocation" value="<?php
    $recordset['location_id'] ?>">
    Mick

  • Help with cfinput radio button and text fields

    I have a series of radio buttons that allow a user to select
    monetary values but I also want them to be able to define an amount
    if they choose so. I was planning on doing this by providing a
    radio button with the value of other and then using a text field to
    allow the user to enter the monetary value. The problem with this
    is that they might enter a user defined monetary value but forget
    to set the radio button to "other".
    I was hoping that I could set the "other" text input field to
    read only until the point that the user selects the "other" radio
    button. Is there a way to do this using onSelect or another method.
    Or is there a better way to approach this problem? Thanks for any
    help or advice in advance.

    Hi,
    You could call a js function which will select the radio
    button "other " when the user types something in(there are various
    events on cfinput). This way the user will not have to worry about
    selecting the radio button and your requirement will be satisfied.
    Hope this Helps.
    Thanks,
    Bhakti

Maybe you are looking for

  • Satellite Pro A200: XP + Vista installed/dual boot possible?

    Hi, I am not sure if I am right here at XP OS but I post it as it is OS related. My Satellite Pro A200 (PSAE7) runs smoothly with XP but I want to create a sandbox (partition) for/with Vista. Basically I know that it is possible to run XP and Vista o

  • How to operate multiple querys using DB Adapter and 'Execute Custom SQL'

    I have a requirment that I need to create database adapter in your BPEL process with 'Execute Custom SQL' to operate multiple query in DB in one atomic here are the details: inbound request: <ns1:Query_bpelProcessRequest> <ns1:input> <ns1:ItemDetail>

  • Why such different file sizes?

    I have made a couple videos using iMovie. Why is it that one movie is 14 GB and the other one is 40GB. They are both 30 minutes long and the shorter one actually has more transitions, the second one may have more shorter clips, is that the reason? Ju

  • System Monitoring old entries still visible

    Hi SolMan Experts, We are using System Monitoring for more or less a year now to monitor our PRD systems. Now we have deactivated the monitoring from one system (as it will disappear) - system X, but the monitoring entries are still visible in one of

  • Replace Command

    Friends My requirement is to "Replace all occurrences of a particular word in a string with an other word". Is there no "Replace all Occurrences" command in ABAP ? I checked in the help and could not find it. Is there any direct way of doing it ? I c