Conditional radio buttons

Well, I have a 2 page document. I have radio buttons on page 1: RadioGroup1; Radio1 = 0, = 1 radio2, radio3 = 2; RadioGroup2; Zealand.4 = 0, radio5 = 1, SIRIUS6 = 2. I have a textbox that displays sentences based on the selection of the Radio page 2 groups. If the person chooses radio2 or radio3 that following will appear in the text box on page 2. "Group 1 is greater than 0. If the person chooses radio5 or SIRIUS6 that the following is displayed in the control textbox on page 2; "Group 2 is greater than 0. If the person choose a combination of those, they will receive two messages to display together. I tried to use 'change' event on each of the groups of Radio.

topMostForm. Page1.RadioGroup1::change - (JavaScript, client)

If (this.rawValue >)

0)

{

Page2.TextBox.value ("Group 1 is greater than 0. \n");

}

topMostForm. Page1.RadioGroup2::change - (JavaScript, client)

If (this.rawValue > 0)

{

Page2.TextBox.value ("group 2 is greater than 0. \n");

}

Nothing is display in the text box. Any help would be grateful.

Well I'm back at a computer!

The if/else statement might look like this:

if (this.rawValue > 0)
{
     Page2.textbox.rawValue = "Group 1 is greater than 0. \n";
}
else
{
     Page2.textbox.rawValue = "";
}

Hope that helps,

Niall

Ensure the dynamics

Tags: Adobe LiveCycle

Similar Questions

  • Check the conditional Radio button

    Hello

    I am building a form where I have elements that must be calculated and have the sum in a (TOTAL) field in the digital field.

    What I'm looking for, it is as shown below. If the number that appears in the TOTAL field falls between 130 and 140, i want the first radio button to be activated automatically, and so on so forth for 5 boxes.

    radio.jpg

    Can you please let me know how to achieve this?

    Note: I am very new to Livecycle Designer.

    Kind regards

    I created a sample for you... Please see the attachment. The code to fill the option boxes is on the RadioButtonList object.

    Paul

  • Disable the Radio button under condition does not work well

    Hi friends,

    I have three radio buttons

    < li > cottages
    < li > New rental
    < li > in the name of


    I'll show this option button conditional according to the user who connects to the application.

    Suppose that, assume that if a person 'A' concludes the application means that it will be shown only these radio button options---NH---,---OB---,---Self---

    Assume that, if a person 'B' concludes the application means that it will be shown only these radio button options - NH-, - free-

    If a person "C" concludes the application means that it will be shown that these radio button options - Self-


    I limited the boxes according to the users who enter the application using their roles.

    But my challenge here is once the user and if it someone at - it means radio button, select

    Example if he chooses - NH - means, then - OB - and - holiday - radio button must disable and if he chooses - OB - means then NH - and - to
    Disable (vice versa).

    I have also done the same with the DA.

    With the real action like: javascript Expression I gave the following encodings (I wrote the below DA for the three cases, if the request_class_code is equal to)
    (NH, O, S)
    var enabled=$v('P22_REQUEST_CLASS_CODE');
    if (!$u_SubString(enabled,'S')) $('#P22_REQUEST_CLASS_CODE_2').attr("disabled","disabled");
    if (!$u_SubString(enabled,'NH')) $('#P22_REQUEST_CLASS_CODE_0').attr("disabled","disabled");
    if (!$u_SubString(enabled,'OB')) $('#P22_REQUEST_CLASS_CODE_1').attr("disabled","disabled");
    The DA above works great only for the user who has the possibility to view the three radio buttons in my form (i.e)(NH,OB,S).

    For the user who has the ability to view two or one option button, it does not work properly (i.e.)(NH,S) or(OB,S) or (S).

    Why it does not work for the user with two options or with a radio button medium, the source of this property of radio button option is changing. Given that I took
    the source of my radio button in my DA only when the three options are present.

    How I can solve this problem for the user who is having this option two or radio.

    We hope to hear you clearly on the issue.


    Brgds,
    Mini

    Hello

    If I did not understand what you have that might work

    var lVal = $v('P22_REQUEST_CLASS_CODE');
    $('#P22_REQUEST_CLASS_CODE input:not([value="' + lVal + '"])').attr("disabled","disabled");
    

    Kind regards
    Jari

    http://dbswh.webhop.NET/dbswh/f?p=blog:Home

  • Conditionally disable buttons radio on tableSelectOne

    ADF 10 g

    Hello
    is it possible to conditionally disable radio buttons af:tableSelectOne on a per line basis?
    Thank you
    Mike

    Hello

    Yes, and I answered this question yesterday already

    Frank

  • How to show or hide the region of the shuttle during the click on the radio buttons?

    Hello

    I'm new to JDeveloper. Here is my requirement.

    1. create 2 radio buttons: Yes and no and default displays "" selected radio button.

    2. create a region of shuttle with select query in VO.

    Query is:

    Select 'No group' for_user, for_pkg double null

    Union

    Select "Company" for_user, for_pkg "SEGMENT1" double

    Union

    Select 'Rental' for_user, for_pkg 'SEGMENT2"double

    Union

    Select 'Cost center' for_user, 'SEGMENT4' double for_pkg

    Union

    Select 'Project' for_user, 'SEGMENT5' double for_pkg

    Union

    Select "Intercompany" for_user, "SEGMENT8" for_pkg of the double

    order by nulls first for_pkg

    3. initially hide the region of the shuttle during the loading of the page.

    4. click on the radio button 'yes', display area of the shuttle with values at the head of list of query VO and empty list leak.

    5. new click on the 'no' radio button, he must hide region and so screen shuttle shuttle dynamically according to the selected option button.

    But my problem is I am able to hide area shuttle when the page loads at the beginning and after that, when I'm clicking 'Yes' radio button, is just to display area shuttle empty without value in the main list and once when I'm clicking 'No' radio button, it should hide area shuttle but he's not hiding. I used the RPP to show or hide the area Shuttle under certain conditions. I use JDev 10.1.3.3.0 version as we Oracle EBS version 12.1.2 in our society.

    Please find the attached draft and suggest me proper with examples of sample approach.

    Monika,

    I tried to get this working in the lower version of Jdeveloper and looks like it works.

    Can you make the change below and see what happens.

    1. modify your query to VO as below: (I replaced null with SEGMENT0)

    select 'No Grouping' for_user, 'SEGMENT0' for_pkg from dual
    union
    select 'Company' for_user, 'SEGMENT1' for_pkg from dual
    union
    select 'Location' for_user, 'SEGMENT2' for_pkg from dual
    union
    select 'Cost Center' for_user, 'SEGMENT4' for_pkg from dual
    union
    select 'Project' for_user, 'SEGMENT5' for_pkg from dual
    union
    select 'Intercompany' for_user,'SEGMENT8' for_pkg from dual
    order by for_pkg
    

    2. place VO execution to the processFormRequest:

        public void processFormRequest(OAPageContext pageContext,
                                       OAWebBean webBean) {
            System.out.println("In process Form Request");
            super.processFormRequest(pageContext, webBean);
            OAApplicationModuleImpl appModule =
                (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
            String eventParam = pageContext.getParameter(EVENT_PARAM);
            System.out.println("eventParam: " + eventParam);
            if ("showHideShuttle".equals(eventParam)) {
                //  appModule.invokeMethod("deletetrailing");
                System.out.println("Inside If");
                OAMessageCheckBoxBean messageCheckBoxBean = (OAMessageCheckBoxBean)webBean.findChildRecursive("checkBoxBean");
                System.out.println("messageCheckBoxBean : " + messageCheckBoxBean);
                String messageCheckBoxBeanVal = (String)messageCheckBoxBean.getValue(pageContext);
                System.out.println("messageCheckBoxBeanVal: " + messageCheckBoxBeanVal);
    
                if ("Y".equals(messageCheckBoxBeanVal)) {
                    OAViewObjectImpl shuttleVO1 =
                        (OAViewObjectImpl)appModule.findViewObject("ShuttleVO1");
                    if (shuttleVO1 != null) {
                        shuttleVO1.setWhereClause(null);
                        shuttleVO1.setWhereClauseParams(null);
                        shuttleVO1.executeQuery();
                        System.out.println("Executed Query : " + shuttleVO1.getQuery());
                    }
                    OAViewObjectImpl shuttleVO2 =
                        (OAViewObjectImpl)appModule.findViewObject("ShuttleVO2");
                    if (shuttleVO2 != null) {
                        shuttleVO2.setWhereClause("1=2");
                        shuttleVO2.setWhereClauseParams(null);
                        shuttleVO2.executeQuery();
                        System.out.println("Executed Query1 : " + shuttleVO2.getQuery());
                    }
                }
                String[] name = { "RenderAttr1" };
                String[] val = { messageCheckBoxBeanVal };
    
                Serializable[] params = { name, val };
                Class[] paramTypes = { String[].class, String[].class };
                appModule.invokeMethod("setXXCustomPVOValues", params, paramTypes);
    
            }
    
        }
    

    3. move Spel link shuttle Bean for the region of header above.

    Some useful links for the shuttle Bean:

    Technology blog based in Java of Sushant: 13. Area of application OFA shuttle

    Framework OA Blog: control of the shuttle as part of OSTEOARTHRITIS

    See you soon

    AJ

  • Disable certain value in the Radio button group

    Hello

    Is it possible to have a group of radio buttons but have certain values with disabilities while they are displayed but cannot be selected while other values in the Group of radio buttons are selectable.

    I know that I could have two groups of radio next to each one showing the selectable values and another next to it showing disabled values but I'd rather have a radio group so that the values are in order.

    We currently use apex 4.2.5.00.08

    Thanks in advance

    where to enjoy a group of radio buttons with three values

    Yes, no, both

    so it's the two of us, without deactivation function

    -on your condition

    real action in dynamic action

    run javascript

    $("#P2_CHOOSE_STATUS_"+0).attr ("disabled", true);

    $("#P2_CHOOSE_STATUS_"+1).attr ("disabled", true);

    P2_CHOOSE_STATUS IS THE NAME OF THE ELEMENT

  • All the choices with guest of radio buttons

    Hello

    I have a requirement to show the quick values as radio buttons which includes the 'YES', 'NO', 'ALL '. I don't have the value 'ALL' in DB, but when I try to select the choices of ALL in the prompt it shows not any option as all THE CHOICES. Can someone help me out here.

    Thank you

    Prasanna

    Prassu, you should never use a radio button something like that. Radio buttons require a strict condition of "GOLD" - i.e. "has or B ', but not ' has and B.

    You must instead use checkboxes. Then, if a user wants the two they can check them both.

    THX,

    Scott

  • Radio buttons - true/false question rating

    Hi all, it seems so simple, but I spent all the yesterday looking for an answer.  Part of the problem is that all the AIDS that I found are equally old versions of Captivate.

    I want to create a list of 10 questions true or false on the same blade.  It is important that they be on the same blade.  So, if I understand correctly, I can't use the regular quiz blade, but I need to use the radio button widget.  How can I mark these - exodus 7/10?  Work w / variables is really confusing to me.  Thanks for your help.

    Bill

    Interaction of option buttons only has a SINGLE variable that can be attached! In addition, you will need to set this variable in project, Variables. I think you're actually trying to do something that you don't quite understand. I have written several posts on this interaction/widget. Take a look at the one I referred to the former position (on advice for widgets).

    I recommend first to try with fewer variables.

    1. Set the variables one project, Variables: v_one, v_two, v_three
    2. The interaction between radio buttons first and then type the name of the first variable v_one
    3. Do the same for the other two interactions of option buttons, associated with the v_two and v_three
    4. Write in the conditional, tip action
    5. Insert a button (may be a form button) to trigger advanced by action

    This very old post describes the meaning of the variables

    Curious to know the Variables in Captivate? -Captivate Blog

    This one on the use of variables in action:

    Curious to know the Variables in Captivate? -Captivate Blog

  • Selection of a radio button does not work in a popup invoked by default

    Hi all

    I'm working on a condition in which action triggers innovation of a popup on the Web page. The popup has 2 radio buttons and by default, I need to show one of them selected.

    I use the code below in the declaration of popup for the radio buttons.

    < af:selectOneRadio id = 'sor1' autoSubmit = 'true '.

    styleClass = 'popup-text-key '.

    value = "accept" >

    < af:selectItem label = "#{portalBundle.ACCEPT} '"

    value = "accept" id = "si3" / >

    < af:selectItem label = "#{portalBundle.REQUEST_FOR_CHANGE} '"

    value = "requestChange" id = "si2" / >

    < / af:selectOneRadio >

    The problem is when I run the application, on the call of the pop-up window, the default selection in the radio button is not displayed. If I put this code somewhere else in the Web page, the selection is correct.

    Any suggestions or pointers would be useful.

    TIA

    This is what works for me (well I used 12 c but lets see if it works for you too)

    The bean code

    public class PopupRadioBean {}

    String selRadio;

    {} public void setSelRadio (String selRadio)

    this.selRadio = selRadio;

    }

    public String getSelRadio() {}

    If (selRadio == null) {}

    selRadio = "accept";

    }

    Return selRadio;

    }

    public PopupRadioBean() {}

    }

    }

    Page code

    As you can see, I put the string selRadio in bean to 'accept' if the value is null (meaning that the option button has not been selected).

    Timo

  • Can a radio button or box multiple selection in the mandatory fields?

    The initial selection would be necessary, however to choose also other choices in addition to the original selection. In my attempt to install, I can select a field (required), but by selecting an extra field 'unchecked' original field selected

    Something like:

    Or the reasons for the cancellation

    Option 1

    Option 2

    Option 3

    Option 4

    In the case of use, you may choose Option 1 and Option 3.

    Hi K.Winger,

    OK, that's what I thought you wanted to do, but needed to make sure. You can't really do this using a 'game' of option buttons, or a group of check boxes for the reasons you mention, and more that you can't predict which of the available option will apply.

    If you need to do it with 2 sets of options. The first set would you do a group of requred radio buttons, the second is a group of option buttons. But of course it would be a strange layout.

    I think what I'd do it is divided into a drop-down list and a group of checkboxes. You just add therefore place a drop-down list box in the layout.

    In the drop-down list to add all options possible and assign required "."

    Then let what you already like checkboxes in option.

    You can also take it a few steps further.

    first add an additional option to the group box to check something in the sense of "without additional reasons.

    so now you can also do this group of checkboxes required and avoid people to jump it.

    you could also add conditions to the boxes.

    for starters, you can hide all the boxes and show them only when a selection has been made in the drop-down list

    also you can keep hiding the box for the option selected in the drop-down list, if you do not get a doubly selected option.

  • NULL value in Radio buttons 11.1.1.6.2 OBIEE

    Hello

    I use OBIEE 11.1.1.6.2. When we create fast with radio buttons, I was able to learn a button with a NULL value.
    Even if add a where condition clause to restrict the values Null his watch upward.

    I have the same problem with the check box.

    Is this a Bug in this version?

    Thank your.
    MBVAnand

    Hello

    Uncheck the option 'nullable' for this column in the physical layer and restart presentation services. It should disappear.

    Paul
    http://total-bi.com

  • Visible field according to a choice of radio button

    Hi all

    I have this form where I have a group of yes/no radio buttons. I would like to a numeric field to appear only when users click Yes. When the form opens, or if users do not set it to Yes (not default) field should not appear.

    There is a min and max limit attached to this field, which should only kick in when the field (limits of should not be applied when the field is hidden).

    My questions are:

    Where should I put the condition visible/hidden? In the Group of radio button or on each subform condition yes/no? I tried both, so far, but it did not work.

    The script I've tried is (at the exit event of the Group of radio buttons):

    If (this.rawValue == 2) {}

    ... RightDetection.ChoixYesNo.DetectionDelay.presence = "visible".

    }

    else (this.rawValue == 1) {}

    ... RightDetection.ChoixYesNo.DetectionDelay.presence = "hidden".

    }

    The limit min/max used to work before, but since I started playing with this area, I now have an error on the first bracket. Could someone tell me why?

    The limit script is as follows:

    If (this.rawValue < 1)

    {

    xfa.host.messageBox ("specify at least 1 in this area", "Warning", 1, 0);

    xfa.host.setFocus (this);

    }

    If (this.rawValue > 365)

    {

    xfa.host.messageBox ("specify in most of the 365 in this area", "Warning", 1, 0);

    xfa.host.setFocus (this);

    }

    Thank you very much in advance for your help.

    Why not not just the value of the type field user entered - required

  • Label for the radio button question

    Hello

    I use a group of radio buttons in my Vbox container and generating radio buttons for this group at run time according to certain conditions.

    I am able to get the list of all radio buttons in execution, but the problem here is that I put the label property for each of the option button in the radio button group, but I can't see the label on my user interface with the exception of the small circle of option button. I tried I tried different ways of setting the labelPlacement and modification of the container for these components button radio etc etc, but in vein.

    If someone met a similar situation or know something about this issue, please let me know.

    See you soon,.

    G1

    What happens if you call the method addChild as follows: -.

    callLater(listWrappers.addChild,[newRadioButton])
    

    I think that maybe the components are added until they are ready...

  • validation of a group of radio buttons

    Hello
    I have an exclusive raido button group contains "I agree" and "I disagree". By default, I do not accept should I get selected when the form is loaded and if the user clicks, I agree then that the shape must submit.

    I tried to script: writes the script on the commit event of the Group of radio buttons, but initially when the form loads, the validation is triggered because by default, I disagree is selected.

    Pls let me know how can I achieve this requirement?

    Thank you

    Ludovic

    Hi Eric,.

    We use a hidden button to submit the form. In the actual submit button, if satisfied of our condition of radiobutton we can call the click/mouseUp event of the hidden submit button.

    HiddenButton: Button type: submit. Specify the url of the site/mail you want to submit. Make it hidden / exclusion of the layout (at your convenience)

    Then in the actual submit button.

    If (AgreementRadioButton.value is "I oppose")

    {

    HiddenEmail.execEvent ("click");

    }

    on the other

    {

    App.Alert ("Please select I agree");

    }

    Note: The actual submit button would be simply a button with no bids.

    Hope this will help.

    Thank you.

    Sidonie.

  • Nested panel based on radio button selection

    And I'm back.

    In Guide Builder.

    I have a group of 4 buttons radio buttons. When "delete" things, I want to 'user id' display (that's its own Panel).

    That's what I did and it doesn't work:

    Panel 'user id' is defined in nested optional

    in the display panel rules specify for this Panel - apply the display rules, add a rule.

    under group or field guide, I chose the list of radio (the one above with 4 options) button.

    condition of game to 'equal '.

    Set the value to 'delete '.


    When I saw the guide and choose 'Remove' user id Panel does not appear.

    Who am I lack/hurt?

    Replied to your private email.

    Paul

Maybe you are looking for

  • Issue of video output P6240Y

    I have a HP P6230Y with Radeon HD 4200 integrated video card. It is limited to VGA and DVI as outputs. The question is: is this component of support for the Radeon HD 4200 function via the DVI port? I'm looking to convert the RGB output (Y, Pb, Pr) f

  • Can I get a download for Windows XP Pro sp1

    Can I get a download for windows xp pro sp1. I have no internet on the other pc that im going to but sp1 on it, but sp2 does not work because I get a blue screen and sp3 does not cause I get a blue screen. The computer is a Hp d530 sff. I want to jus

  • Cannot open the icons on the desktop except google chrome when I click it

    I just got my Sony Vaio two days ago and I love it. The problem is when I click on any one of my icons, nothing seems to open except Google I'd love to have this resolved or I could just have sent mobile ny return

  • Stop error 0x0000c1f5

    My phone displays a blue screen with the error 0x0000c1f5 and not dΘmarre. My laptop is a HP Pavilion dv5 - 1199ev with MS Windows Vista. I don't have any changes recently.

  • Double the work for mobile and Desktop? Should I only design for Mobile now?

    I have been using Muse for more than a year, roughly as it was released. I may have missed something, but I have a website that needs to be updated every day, the only problem is that I constantly have to create double pages, one mobile and one for t