Layering radio button exclusion groups

I would like to create a table using radio buttons, where the heading row is one exclusion group, and the two rows below it are two more exclusion groups.
Then, I would like each column underneath the heading to be a separate mini exclusion group.
Finally, for whichever button is selected in the heading row, I would like only the mini exclusion group directly beneath it to be able to be used.
Is this even possible, or can radio buttons only belong to one group at a time?
Shoshana

The script isn't too complicated. The problem is that you have to get around the fact that Acrobat will always let a form with a radio button group flagged as mandatory be submitted regardless of whether a radio button within the group has been selected prior to submission.
You can do this by using two buttons: The first is a regular (non-submitting) button while the second is the actual email submit button. The catch is that the real email submit button is hidden (it can't be seen on the form, nor can it be clicked on by the user).
The first step, which isn't really necessary but would be good practice, would be to mark the radio button group which contains the radio buttons as being mandatory. You can do this by selecting any of the radio buttons in the group which should be mandatory, going to the Object palette and setting the Type property to
User Entered - Required. This will have the effect of Acrobat being able to highlight the radio buttons in red if the user chooses to "Highlight required fields" when filling the form.
The second step is setting-up the two buttons. This step is identical to the second step described in the following thread (about making a check box mandatory for email submission):
Mandatory check box before form submission. Have a look at the first reply to the thread. You should start reading at the paragraph that begins with, "The second part..."
The script checks that the value of the check box is "1". Your script would simply check that the radio button group's rawValue property isn't an empty string.
Stefan
Adobe Systems

Similar Messages

  • Radio button and group

    Hi All,
    Not quite follow what dev guide says about radio button and group implementation.
    I tried but always got strange behavior.
    I have a subtab with two radio buttons (rbt1 and rbt2)
    rbt1 property defined as:
    Initial Value: Y
    Checked Value: Y
    Unchecked Value: N
    rbt2 property defined as:
    Initial Value: Y
    Checked Value: N
    Unchecked Value: Y
    Also, In my subtab PR, I init these two bts as a group:
    OAMessageRadioButtonBean colButton1 =
    (OAMessageRadioButtonBean)webBean.findChildRecursive("rbt1");
    colButton1.setName("colGroup");
    colButton1.setSelectedValue("Y");
    OAMessageRadioButtonBean colButton2 =
    (OAMessageRadioButtonBean)webBean.findChildRecursive("rbt2");
    colButton2.setName("colGroup");
    colButton2.setSelectedValue("N");
    When the subtab render first time, rbt1 is checked and rbt2 is unchecked as expected. but when I go to other subtab then come back, the rbt1 is unchecked and rbt2 is checked (switch automatically).
    The subtab PR is the only place I set this radio button value and group as showing above. Somewhere wrong with my logic or setting?
    Regards,
    KJ

    Hi All,
    Got issue resolved. When I was replying Ranjit previous post, I mentioned both of buttons bind to same VO attribute. Since the first rbt1 has defined checked and unchecked values (Y & N) and both of buttons are defined in same group, so I took off second rbt2 attribute binding then it works (won't switch automatically anymore).
    I still defined init values for both of buttons and also removed setSelectedValue() method calls from PR.
    Thanks again for the great helping.
    KJ

  • I made eight radio buttons exclusive by each other.But It made the orignal program slow down.

    I made eight radio buttons exclusive by each other. But It made the
    original program slow down. I insert them parallel to the original
    program, ie, they are excuted at the same time, I think. But I found
    that the speed before I insert it is faster than after. I think If I
    use the exclusive radio buttons made by ni , the program will execute
    faster. but there aren't eight radio buttons I can choose. How can I
    do ? Or How can I make some changes to the slide that I will get the
    result like NI does?

    You'll have to give the processor some time. In the parallel loop, put a
    'Wait (ms)' from the Time & Diaglog pallete. Wire e.g. 10 to it, and the
    computer has some time to do other processes (like the other loop, and
    updating the user interface).
    When you have something like this, you can open the task manager (win nt,
    win 2000). If it it this problem, the processor uses 100% processor time.
    Regards,
    Wiebe.
    "Rosa" wrote in message
    news:[email protected]..
    > I made eight radio buttons exclusive by each other. But It made the
    > original program slow down. I insert them parallel to the original
    > program, ie, they are excuted at the same time, I think. But I found
    > that the speed before I insert it is fa
    ster than after. I think If I
    > use the exclusive radio buttons made by ni , the program will execute
    > faster. but there aren't eight radio buttons I can choose. How can I
    > do ? Or How can I make some changes to the slide that I will get the
    > result like NI does?

  • Dynamic radio button and group

    Hi, we have create dynamic radio button and group on “application creation complete” event , but which I am try to get number of radio button its show zero, see below code
    import flash.utils.setTimeout;
    import mx.controls.Alert;
    import mx.events.FlexEvent;
    import spark.components.RadioButton;
    import spark.components.RadioButtonGroup;
    private var  rbg:RadioButtonGroup;
    private var  rb1:RadioButton;
    private var  rb2:RadioButton;
    private var dcount:int = 0;
    protected function application1_creationCompleteHandler(event:FlexEvent):void
         // TODO Auto-generated method stub
         // TODO Auto-generated method stub
         rb1 = new RadioButton();
         rb2 = new RadioButton();
         rbg = new RadioButtonGroup();
         rb1.label = "Radio1";
         rb2.label = "Radio2";
         rb1.group = rbg;
         rb2.group = rbg;
         vbox1.addChild(rb1);
         vbox1.addChild(rb2);
         checkRadioButton (); 
    protected function checkRadioButton ():void
         Alert.show("In checkRadioButton function : " +  rb1.group.numRadioButtons.toString());
    If I put some Time interval to call  checkRadioButton function its working fine,
    //checkRadioButton (); 
    setTimeout(checkRadioButton,1000);
    but this is not best practice.
    why this happen ….can anybody  clear  this or any other way to do this.
    Thanks in advance

    @manjeet.patel,
    Just write the below line of code
    vbox1.validateNow();
    You need not use setTimeout() function
    vbox1.addChild(rb1);
    vbox1.addChild(rb2);
    vbox1.validateNow();
    Thanks,
    Bhasker

  • Sets of Radio buttons all grouped together

    I am creating a form with many sets of radio buttons. Each set contains 3 buttons. When I add the 4th button, Designer groups it with the first three. When I add a 5th button, it is automatically grouped with the first 4. I need to separate the buttons into groups of 3. How do I manually choose which radio buttons to group together?
    Eric

    Doing this is little tricky... Add all your radio buttons and then choose all the ones you want to group in a different set holding Ctrl key. And then click your mouse button (right). Then choose 'Wrap in New Radio Button Group'.
    Good luck,
    SekharN.

  • Radio Buttons & Repeat Groups

    Seems like it should be easy, but I've not been able to
    figure it out.
    I'm pulling a list of records from a mySql DB, populate those
    within a Form/Table so that a user can select one of the records
    via a Radio Button. Upon Submit, I'd like to be able to retrieve
    that record selected on a subsequent page either by a key
    associated with the radio button, or the necessary form variables
    being set once the Radion Button is selected.
    So far, creating the record set and displaying it is no
    problem within a single row table defined as repeating. All works
    well. How do I associate a radio button with a record within the
    record set? Is there a better way?

    Button Groups are not 2 dimensional... you'll have to use the listeners to fix your problem.

  • Radio Buttons Defaulting to YES when form is saved

    Hello, I'm researching a problem a user has informed me of, and I haven't seen this topic listed anywhere, nor have I been able to figure out why the problem is happening.
    My form has 5 radio button exclusion groups, each with a YES or NO selection.
    When the form is saved with a selection of NO for each group then re-opened, the selected value has changed to YES for all but the first group.
    Anyone have an idea why this is happening?

    Is there any script on the form that could be changing the values after loading?
    As a test, add a button on the form and use this code on the click event:
    xfa.host.exportData();
    When the button is clicked, it will allow the user to choose a filename to save the data into (it will have an XDP extension). Once it is saved change the extension to XML and open it in your browser. Check and see that those button groups are being set. If they are not it could be that they are not bound correctly. Check to see if the Binding is set to none (if so you are excluding these from your data).
    Hope that helps.

  • Global binding for radio buttons needs tweaking

    When selecting global binding for a text or numeric field, its corresponding field with the same name also changes to global binding.
    However when doing this for radio button exclusion groups, the other radio button groups don't automatically change to global. You have to do it manually.

    Found the problem in another topic:
    scott sheck - 1:30am Jun 29, 07 PST (#6 of 7)
    A pasted radio button is automatically added to an existing exclusion group if the last added item was a radio button. This is in the help.
    I wish there was a default to turn this off because I don't want to add a temporary item just to get a new exclusion group.

  • Help with radio buttons and show/hide javascript

    Hi. I'm new working with LiveCycle and also pretty much at a basic/beginner level of javascripting. I'm creating a pdf fillable form and one of the tasks I've been given is to add a function where if Option A is chosen by the user, then the correspondng table will appear, and if Option B is chosen another table will appear. After some searching I Iearned more about how radio buttons can be used, so I created a set of radio buttons. I have tried several different things, the latest was making both tables "hidden", and then taking to the radio button list group and applying the show/hide script to each of the radio buttons in the group. Still nothing seems to be working as I want it to. The table remains hidden when I click on the . This is what the code looks like right now. I know I'm obviously doing something wrong, this seems like such a basic thing to code. Getting to the frustration point, if you can sort me out with what I am missing/overlooking please let me know. Many thanks!
    Note. The radio buttons are not in the same table, they are higher up in the form outside of the tables that I am trying to show/hide, but they are in the same subform. I don't know if that might be an issue?
    form1.#subform[0].RadioButtonList::click - (JavaScript, client)
    form1.#subform[0].RadioButtonList.#field[0]::click - (JavaScript, client)
       if ( RadioButtonList.#field[0].selectedIndex == 1)
         form1.#subform[0].Table1_Work.presence = "visible"
       else
       form1.#subform[0].Table1_Work.presence = "hidden"
    form1.#subform[0].RadioButtonList.#field[1]::click - (JavaScript, client)
       if ( RadioButtonList.#field[1].selectedIndex == 2)
        form1.#subform[0].Table1_Official.presence = "visible"
      else
         form1.#subform[0].Table1_Official.presence = "hidden"

    Hi,
    For starters you have unnamed pages, which is not a good idea. This makes it more difficult to reference objects. In your JavaScript you would have to resolve the node, however the simpliest route would be to name the page first. Something like "page1". Have a look at this example for referencing objects: http://assure.ly/kUP02y.
    Next I would not place the script in each of the radio buttons, as this is likely to cause conflicts and is doubling the script. The best place to put the script is in the click event of the radio button exclusion group. This contains all of the radio buttons. See an example here: http://assure.ly/h7whb8 and https://acrobat.com/#d=ALebgueDXjewHjGyYRdrmw.
    You syntax for JavaScript if/else statements is potentially incorrect. The script within the statements should be wrapped in curly brackets. While you can get away with it for single lines, I would not be inclined to take that approach. So:
    if (a test) {
         // do something
    else {
         // do something else
    With the radio button exclusion group you can use its rawValue, just specify it in the Object > Binding palette. So on the basis of chaning the page name:
    if (this.rawValue == "1") {
         page1.Table1_Work.presence = "visible";
    else {
         page1.Table1_Work.presence = "hidden";
    There is a syntax checker button in the Script Editor that should highlight errors.
    Niall

  • Capturing user response based on radio button

    I am trying to capture user response based on yes or no reply to a required radio button.  If they answer yes, they need to provide details.  The radio button values are N and Y, nothing listed under item, the captions are turned off. I used the LiveCyclePopUp.pdf sample by George Kaiser as a go-by and modified for my radio button/text field name and added the visible/invisible, but no luck.
    Here is what I'm trying, but it's not working, nothing happens when I click either yes or no, am using javascript. 
    Once this is working right, if possible, I would like to add to my submit button a double check to make sure if this radio button answer is Y and the text box is null, go back and provide the answer, but the most important part is to get this part working.  Any ideas what I'm missing?  Thank you!
    switch (this.rawValue)
        case "Y":
        Response25AY.presence = "visible";
        Response25AY = xfa.host.response("Please enter "YES" details (date, injury details, corrective action) below", "Q25A YES DETAILS", "Please enter "YES" details (date, injury details, corrective action) here . . . ");
        break;
        case "N":
        Response25AY.presence = "invisible";
        break;

    Hi,
    Firstly, the syntax is JavaScript, so when setting the Response25AY, you would need to include .rawValue:
    Use of quotation marks within the script will give a syntax error (around the YES).
    A small note: I would not duplicate the question as a default value. It does not really add value.
    So this should be closer:
    Response25AY.rawValue = xfa.host.response("Please enter YES details (date, injury details, corrective action) below", "Q25A YES DETAILS");
    Can you check the relative reference from the radio button group to the Response25AY object. It may be that the reference in the script is not full enough and is incomplete.
    Also I would place this script in the click event of the radio button exclusion group.
    Lastly, check the JavaScript Console (Control+J) when previewing the form, for errors.
    Hope that helps,
    Niall

  • 2 sets of Radio Buttons in a Form-complications

    Hello everyone,
    I have been looking around for code to assist me in building a form. I have developed the form, and just have a couple problems that I can't figure out.
    In one question on the form the user can choose from one set of radio buttons and select one of the five options. Then I have a second set of radio buttons, that the user can again only choose one option. My problem is that I only want the user to be able to select from the second set of radio buttons if they selected a certain option in the first set. An example to clear up my problem:
    Did you finish the training:
    Yes
    Half
    None
    So if the user selected yes from the first set of radio buttons, I want the second set of radio buttons to now be selectable:
    The training was:
    Up-beat and enjoyable
    Snoozer
    The conditions that I am using are very different than these but this is just a simple skit. So how do I make the second set of radio buttons unselectable until the user selects a specific radio button from the first set of radio buttons.
    Thanks, I really appreciate the help!

    If you have a radio button exclusion group called 'completion' with three items 'Yes','Half', and 'None' and a second radio button exclusion group called 'completion', go to the 'feedback' Value tab and set the type to 'readOnly'.
    Add the following script to the 'completion' change event...
    // form1.page1.subform1.completion::change - (JavaScript, client)
    if (this.rawValue == "Yes") {
      form1.page1.subform1.feedback.access = "";
    else {
      form1.page1.subform1.feedback.access = "readOnly";
      form1.page1.subform1.feedback.rawValue = "";
    If the user selects 'Yes', the 'feedback' group is available for selection. If the user does not select 'Yes', 'feedback' is reset and made readOnly.
    Steve

  • Exclusion Groups

    Is it possible to create an exclusion group using check boxes instead of radio buttons?
    I need to provide boxes on a form which can be filled (for example) Yes or No, but also need to be able to return the field to null in case it has been clicked inadvertently. (so for example if "yes" is selected, clicking on "yes" again sets that field to null without switching on the "no" field).
    While I can achieve this using the action builder, each check box has a separate field name in the database, and I need both boxes to be the same field, like when using a radio button exclusion group.
    If I create an exclusion group containing radio buttons, I can't seem to be able to switch off all the answers when filling the form.
    I'm sure I'm missing something really simple...but any help gratefully received!
    Many thanks...horrorhound

    Hi,
    I would be inclined to stick with radio buttons for mutually exclusive selections.
    There is an example here where the script in the click event of the radio button exclusion group, so that if the user is holding the Shift key, the selection is cleared. http://assure.ly/j1KdNq.
    Another example demonstrates script that looks at the initial value of the radio button exclusion group and if it is already selected, it will deselect: http://assure.ly/kp60nk.
    You can also use script to force a group of checkboxes to behave as mutually exclusive, but as you point out you end up with separate objects.
    Hope that helps,
    Niall

  • Programming radio buttons

    Right now I'm able to choose between "Maintain" and "Correct" and between "Left" and "Right", but what I would like to do is that only if I choose the "Correct" option, I will have the option to choose between "Left and "Right" (although "Left" and "Right" don't have to be invisble). I have no experience in programming JS, so I would be really happy if you could help me using a simple method.
    Another unrelated question: As you can see I have an underline textbox where I should input the mm. The underline is very low because only this way the typed text would be aligned to the "left" and "mm". Is there a way to raise the underline without raising the place for the typed text?
    Thank you in advance

    Hi,
    Have a look at this example which shows how to use the presence property to show and hide objects: http://assure.ly/h7whb8.
    There are also some examples here:
    https://acrobat.com/#d=ALebgueDXjewHjGyYRdrmw
    https://acrobat.com/#d=FXLq025O2C0aDMh9YqpH1g
    Basically you would place the following script in the click event of the radio button exclusion group:
    if (this.rawValue == "Correct") {
         direction.presence = "visible";
    else {
         direction.presence = "invisible";
    This is on the basis of the Left and Right radio buttons being inside a radio button exclusion group called "direction". Also if you have specified a value in the Object > Binding palette for the radio buttons, the script would need to test this value. 
    You can adjust the textfield margins in the Layout palette, so that the underline is raised up. Trial and error.
    Niall

  • How do i get a text field to autopopulate based on responses in two groups of radio buttons

    I am using Adobe Acrobat Pro and am very new to this.
    What I want to achieve:
    I have two sets of radio buttons; one group is "Likelihood" choices and the other group are "Consequence" choices. Based on what the user picks in those two groups, I want the form to auto-populate the risk rating in another field. E.g If the user picks "Insignificant" in the consequence group and "Rare" in the likelihood group; the field titled Risk Rating should display the word "Low". If they pick "Insignificant" and "Almost Certain" the Risk Rating field should display "Moderate". Please let me know if you need further information. Thanks in advance.

    You can use something like this code as the custom calculation script of the risk rating field:
    var consequence = this.getField("Consequence").valueAsString;
    var likelihood = this.getField("Likelihood").valueAsString;
    if (consequence=="Insignificant" && likelihood=="Rare") event.value = "Low";
    else if (consequence=="Insignificant" && likelihood=="Almost Certain") event.value = "Moderate";
    // etc.
    else event.value = "";
    Edit: Fixed small mistake in code.

  • Radio Buttons + Required Input/Output Fields in Dialog Programming

    Hi All,
    Please find the below issue.
    I have 2 Radio buttons
    RB1 and RB2 defined in group RG.
    And by default RB1 is selected.
    I also have 3 Input.Output Fields.
    F1 , F2  & F3.
    Now before displaying the Screen for the end user,
    I need to display as follows:
    A)   
    RB1 = X -
    > Selected.
    RB2  = Space -
    >Not Selected.
    F1 -
    > Visible.
    F2 & F3 -
    >Invisible.
    B)
    RB1 = space -
    > Not Selected.
    RB2  = X -
    >Selected.
    F1 -
    >Invisible.
    F2 -
    >Visible.
    F3 -
    >Visible.
    When i am debugging, the value of RB1 is not X though it is selected on the screen (by default due to Radio Button Group) & hence the below code is not working.
    *_PBO:_*
    LOOP AT SCREEN.
    IF RB1 = 'X' AND ( SCREEN-NAME = 'TXT2' OR SCREEN-NAME = 'TXT3' ).
             SCREEN-INVISIBLE = 1.
    ELSEIF RB1 = 'X' AND ( SCREEN-NAME = 'F2' OR SCREEN-NAME = 'F3 ).
             SCREEN-ACTIVE = 0.
    ENDIF.
    Modify Screen.
    ENDLOOP.
    But when i select RB2 = X on the screen.
    Value is getting populated .
    Waiting for your hints/ideas/suggestions
    Thanks
    Sri.

    Alright, you defined the radio buttons and grouped them. Did you also assign Fcode to the radio button group? if not already assigned the assign something to FctCode to the radio button. If you can double click on one and assign a name, this will automatically assign to other one. If you already did that... just ignore it.
    Next, by defualt, RB1 will not be having 'X' though it shows selected but you can always make it by just writing the following statement in PBO (If you dont want to mislead anybody)
    if RB1 = space and RB2 = space.
      RB1 = 'X'.
    endif.
    If you have already done that the next step would be.... Assign a screen group value to the fields F1, F2 and F3.
    for example, double click on the field F1, add GR1 in groups in first box and do the same for field text/label if any. Same way, assign GR2 to F2 and F3.
    Then add the following code in PBO. (Someone or you can write it better. This is just an example)
      LOOP AT SCREEN.
        if RB1 = 'X'.
           if screen-group1 = 'GR2'.
              screen-input = 0.
              screen-invisible = 1.
           endif.
        endif.
        if RB2 = 'X'.
           if screen-group1 = 'GR1'.
              screen-input = 0.
              screen-invisible = 1.
           endif.
        endif.
        MODIFY SCREEN.
      ENDLOOP.
    Good luck... It is working code.,

Maybe you are looking for

  • How to fix vecter error

    how to fix vecter error  

  • Audio out from HDMI to TV cuts out

    I'm looking for help to troubleshoot the following problem: I have a brand new iMac, 27", i7 (my first Mac ever). Using the Moshi Mini DisplayPort HDMI adapter, I output video and audio to my LG 55LH90 1080p LED TV. Everything is fine except that app

  • Gst-register and gst-plugins-gnomevfs [Solved]

    One of the dependencies for rhythmbox, gst-plugins-gnomevfs-0.8.10-1, causes gst-register to fail with message: (process:8613): libgnomevfs-WARNING **: Cannot load module `/opt/gnome/lib/gnome-vfs-2.0/modules/libhttp.so' (libdb-4.3.so: cannot open sh

  • HR Report for viewing data transferred through CO1P transaction

    Hi, I have query here about HR data transfer which we do through CO1P transaction. How we can view these data transferred through CO1P in HR module i.e. any transaction or report is available from HR side which can give fair idea values which are pas

  • Help with JTreeTable custom cell renderer!

    Hi. I've followed diligently the complete TreeTable2 example found on the Sun site. http://java.sun.com/products/jfc/tsc/articles/treetable2/ What I'm trying to do is to add alternate-row shading on the Column(0) of the JTreeTable where the Column cl