Remove outline on selected radio button

Hey all does anyone know if its possible to remove the annoying outline rectangle that appears when you click on a select JRadioButton? Such as the outline shown in the picture below:
http://img.photobucket.com/albums/v161/MrCobra/Untitled-2.jpg

setFocusPainted( false );

Similar Messages

  • Get the value of a selected radio button within a ToggleGroup

    All
    Please see the script below. All I'm trying to do is to identify the selected radio button within a ToggleGroup. This has been working in JavaFX 1.2.
    This is JavaFX 1.3 running on NetBeans 6.9 (beta) on Ubuntu 10.04
    Does anyone know why this is no longer working?
    import javafx.scene.Scene;
    import javafx.stage.Stage;
    import javafx.scene.control.ToggleGroup;
    import javafx.scene.control.RadioButton;
    import javafx.scene.layout.HBox;
    import javafx.scene.control.Toggle;
    def levelGroup = ToggleGroup {};
    var selected: Toggle = bind levelGroup.selectedToggle on replace {
        // here I want to capture the value of the selected toggle
        // the outputted value is always 'null'
        println("level toggle = {selected.value}");
        println("selectedToggle = {levelGroup.selectedToggle.value}");
    Stage {
       scene: Scene {
          width: 300
          height: 300
          content: [
             HBox {
                    translateX: 100
                    translateY: 67
                    spacing: 20
                    content: [
                        RadioButton {
                            toggleGroup: levelGroup
                            text: "Easy"
                            selected: false
                        RadioButton {
                            toggleGroup: levelGroup
                            text: "Medium"
                            selected: true
                        RadioButton {
                            toggleGroup: levelGroup
                            text: "Hard"
                            selected: false
    }

    Actually, your code above wouldn't have worked in JavaFX 1.2 as we only added the value property to the new Toggle mixin in 1.3. I believe what worked for you in 1.2 was when you referred to text, which is not a property on Toggle, so you need to cast the selected variable from Toggle to a RadioButton, which does have a text property. For example, this would work:
    var selected: Toggle = bind levelGroup.selectedToggle on replace {
        println("level toggle = {(selected as RadioButton).text}");
        println("selectedToggle = {(levelGroup.selectedToggle as RadioButton).text}");
    }Alternatively, instead of casting like this, you can store a value in the value property of the Toggle mixin class, which is extended by RadioButton. For example, your code could be changed to the following (in particular note that the only change is the addition of the value properties in each of the RadioButton):
    import javafx.scene.Scene;
    import javafx.stage.Stage;
    import javafx.scene.control.ToggleGroup;
    import javafx.scene.control.RadioButton;
    import javafx.scene.layout.HBox;
    import javafx.scene.control.Toggle;
    def levelGroup = ToggleGroup {};
    var selected: Toggle = bind levelGroup.selectedToggle on replace {
        println("level toggle = {selected.value}");
        println("selectedToggle = {levelGroup.selectedToggle.value}");
    Stage {
       scene: Scene {
          width: 300
          height: 300
          content: [
             HBox {
                    translateX: 100
                    translateY: 67
                    spacing: 20
                    content: [
                        RadioButton {
                            toggleGroup: levelGroup
                            text: "Easy"
                            selected: false
                            value: "Easy"
                        RadioButton {
                            toggleGroup: levelGroup
                            text: "Medium"
                            selected: true
                            value: "Medium"
                        RadioButton {
                            toggleGroup: levelGroup
                            text: "Hard"
                            selected: false
                            value: "Hard"
    }This approach saves you from having to cast from Toggle to RadioButton. This second approach is actually very powerful, as you can store any object in the value field, and can then easily retrieve it at a later point when the user selects the desired RadioButton. Of course, you can just use it as in the simple case above as well.
    I hope that helps.

  • Skin or change color of selected radio button or selected checkbox

    I'm creating a custom CSS and I want to change the color of the checkmark (or the icon used) for selected radio buttons/checkboxes. Right now it's green (because it's using the simple stylesheet) but I don't know what element I can use to change the color or skin it. I've tried the af:selectBooleanCheckbox and af:selectBooleanRadio (even though they say they are only for disabled and read-only) but they don't appear to do anything... what do I use?

    Have a look at
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/skin-selectors.html
    Searh e.g for
    af:selectBooleanCheckbox Component
    to learn how to work with custom images
    Frank

  • Single Select Radio Button -- Defaults

    I have a Master Detail tables displayed using Advanced tables in a Framework page.
    I have a Project Header, Project Phase and Phase Details.I have created the View Links for these information.
    My issue is then, when I launch the page for a specific project, it does show the phase within the project.But in Phases region, I have a single select radio button to display the phase details.
    How can default the single select radio button for the first row to be selected and then display the details for the first row.
    When I manually select the first row, it does display the details correctly.
    I tried coding it in AM where the Project Query is called to check for the Phases Vo object, but I get o as fetched rows count.Any ideas

    Suvarna,
    Here is my code in AM. after iniDetail on master page.
    in UpdateCO:
    am.invokeMethod("iniDetails", params);
    am.invokeMethod("setDefaultSelection");
    in AM:
    public void setDefaultSelection()
    GeorStgSumryRuleLinesVOImpl lineVo = getGeorStgSumryRuleLinesVO2();
    Row firstLineRow = (Row)lineVo.first();
    firstLineRow.setAttribute("SelectLineRow", "Y");
    lineVo.setCurrentRow(firstLineRow);
    I got folloowing error message at the line : firstLineRow.setAttribute("SelectLineRow", "Y");
    oracle.apps.fnd.framework.OAException: java.lang.NullPointerException at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888) at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:862) at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:985) at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:209) at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:131) at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:748) at oracle.apps.xbol.georstg.summarization.webui.GeorStgSumryRuleUpdateCO.processRequest(GeorStgSumryRuleUpdateCO.java:60) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:525) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244) at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1023) at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1536) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:875) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:842) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:584) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244) at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:363) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:875) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:842) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:584) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244) at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:330) at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2117) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1558) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:462) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:383) at OA.jspService(OA.jsp:40) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209) at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189) at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199) at OA.jspService(OA.jsp:45) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534) ## Detail 0 ## java.lang.NullPointerException at oracle.apps.xbol.georstg.summarization.server.GeorStgSumryRuleAMImpl.setDefaultSelection(GeorStgSumryRuleAMImpl.java:83) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:188) at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:131) at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:748) at oracle.apps.xbol.georstg.summarization.webui.GeorStgSumryRuleUpdateCO.processRequest(GeorStgSumryRuleUpdateCO.java:60) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:525) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244) at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1023) at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1536) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:875) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:842) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:584) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244) at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:363) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:875) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:842) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:584) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244) at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:330) at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2117) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1558) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:462) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:383) at OA.jspService(OA.jsp:40) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209) at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189) at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199) at OA.jspService(OA.jsp:45) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534) java.lang.NullPointerException at oracle.apps.xbol.georstg.summarization.server.GeorStgSumryRuleAMImpl.setDefaultSelection(GeorStgSumryRuleAMImpl.java:83) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:188) at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:131) at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:748) at oracle.apps.xbol.georstg.summarization.webui.GeorStgSumryRuleUpdateCO.processRequest(GeorStgSumryRuleUpdateCO.java:60) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:525) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244) at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1023) at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1536) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:875) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:842) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:584) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244) at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:363) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:875) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:842) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:584) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244) at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:330) at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2117) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1558) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:462) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:383) at OA.jspService(OA.jsp:40) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209) at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189) at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199) at OA.jspService(OA.jsp:45) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534)
    any idea?
    Thanks!
    DeeDee

  • Is it possible not to allow the user to select radio button based on condi

    Hello All,
    I have two radio buttons ( Relation value 1 default , famid value 0 )
    can i create a situation where in the user cannnot select the famid radio based on some condition.
    The conditioin is that , the user should have selected atleast one item from three list controls then only i should allow the user to select famid radio else not ?
    thanks/kumar

    Hi,
    You can use javaScript to enable disable radio button. Call the javaScript from your select list onChange event.
    Hope this helps,
    Regards,
    Tajuddin
    web: http://tajuddin.whitepagesbd.com

  • How do I select radio button in a form and also in a table  (urgent)

    Hi all
    I have two radio buttons on top of a table. And within a table for each row I have a radiobutton. When the page shows up in the begining. I am calling the the script
    function selectFirstRow(form) {
              var firstRow=-1;
            for(i=0; i<form.elements.length; i++) {
                 if ( form.elements.type == "radio" ) {
    if ( firstRow < 0 ) {
    firstRow = i;
    form.elements[i].checked = true;
    } else {
    form.elements[i].checked = false;
    It selects the first radio in the datatable which is fine. But it also unselects the radios above the table. I know why it does because in the script it unselects all the radios in that form. Could anybosy help me in modifying the script so that it only does it for a table. I can pass the table id.
    thanks

    To get the radio button inside the table instead of form.elements, get the child nodes of table node.
    Something like this
    var tableObj = document.getElementById('tableId');
    var tbodyObj = tableObj.getElementsByTagName("TBODY")[0];
    var inputObjs = tbodyObj.getElementsByTagName("INPUT");
    var tempChild = null;
    for(var i=0;i<inputObjs.length;++i) {
        tempChild = inputObjs;
    if(tempChild.type == 'radio') {
    // Do something

  • RADIO BUTTON TALLY -Auto count & display ticked/selected radio buttons

    Hi, feels like this should be simple & straight forward, but obviously for me.
    I have a Questionnaire with say twenty YES or NO answers.
    I've used grouped Radio Buttons as fields so as to pick one or the other.
    I have a read only "YES Tally" text field at bottom of questionaire, formated as 'Number'.
    I want the form to automatically calculate & display the number of YES answers (radio buttons) selected or ticked.
    How can i achieve this?
    ZB.

    If you have your export value for the buttons set to "1" then you only need to use the calculation option "the field is the sum of: " calculation option., or you can use the 'simplified field notation' to sum the field names. If you use and a different value for the export value,then you need to write a custom script and either test for the export value of the "Yes" button or test for the export value not be "Off".

  • Prompt user to select radio button

    Hello, LabView Fans
    The vi attached is kind of working like I want it to but it
    just seems to be more complicated than necessary. I’m using a radio button setup
    with no selection and want to force the user to make a selection. If the selection
    is not made; then prompt the user to make a selection. I’d like to have the vi
    continue until a selection is made and the OK button pressed, but keep getting
    into a run on situation.
    Thanks for any critique / solutions to this small problem.
    Solved!
    Go to Solution.
    Attachments:
    MustMakeChoice.vi ‏13 KB

    Hi Zilla,
    here you go.  This is a possible way to do it
    Kind regards,
    - Bjorn -
    Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's
    LabVIEW 5.1 - LabVIEW 2012
    Attachments:
    Colorpicker.vi ‏12 KB

  • UIX Sample code for Single Selection Radio Button PPR??

    Does any one have a sample UIX code/page that does PPR for a single selection in a table?
    e.g On the top of teh page there is a table with a radio button single selection. Depending upon the selection in the main table the bottom page will render another table.
    Please email the sample code at [email protected]
    Thanks,
    Akshay

    Does any one have a sample UIX code/page that does PPR for a single selection in a table?
    e.g On the top of teh page there is a table with a radio button single selection. Depending upon the selection in the main table the bottom page will render another table.
    Please email the sample code at [email protected]
    Thanks,
    Akshay

  • Auto Select Radio Button

    Hello,
    I have a 40+ page form and I am trying to set up a page at the end that shows what the user has filled in for certain pages. I have all of this working except radio buttons. If on page 1, they select option A, on my results page, I want a option A selected again. I have tried using the following code as well as a few variations of it:
    if (Main.Page39.GenSub[0].checked==true){
    Main.Page41.Gensub[0].checked=true;
    This doesn't work and I am running out of ideas.
    Any help would be greatly appreciated.
    Thanks in advance

    You have two options.
    1. Set the names of each of the fields to the same name then set the binding as global.
    2. On the exit event of the 1st question explicitly set the answer to the 2nd question. Note that you will have to path completely to that object as it will be out of context to the e1st object. So looking at the hierarchy you would say something like this:
    form1.pagename2.Fieldname2.rawValue = fieldname1.rawValue
    Note that if these are radiobuttons then you woudl be dealing with the exclusion groupname (typically RadioButtonList). This ensures that the radiobutton group can only have one answer. Also each individual radiobutton in th etwo groups must have the same on/off values.

  • How to getvalue from selected radio button

       <table width="39%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="40">
              <input type="radio" name="radiobutton" value="proID" >
              <strong>Product ID:
              <input type="text" name="remProID" size="5" maxlength="5">
              </strong></td>
          </tr>
          <tr>
            <td>
                <p> </p>
              <p><strong>
                <input type="radio" name="radiobutton" value="proDesc" >
                Product Name:
                <select name="remProName">
                </select>
                </strong></p>
              <p>     <strong> Product Description:</strong>
                <select name="remProDesc">
                </select>
              </p>
              </td>
          </tr>
        </table>Question: How to get the value from the textbox when the respective radio button is checked?
    Thanksfor helping.

    If the radiobuttons are within a form, then I am certain you can replace the lines marked
    <input type="radio" name="radiobutton" value="proID" > and
    <input type="radio" name="radiobutton" value="proDesc" >
    with
    <input type="radio" name="radiobutton" value="proID" onClick="return onClickRadioBtn(this)">
    and
    <input type="radio" name="radiobutton" value="proDesc" onClick="return onClickRadioBtn(this)">
    respectively.
    You will then need to create the following JavaScript functions:
    <script language="JavaScript">
    function onClickRadioBtn(oRadioBtn)
    if(oRadioBtn.value == "proID")
    //Perform desired steps for ProID radio button
    else if (oRadioBtn.value == "proDesc")
    //Perform desired steps for ProDesc radio button
    else
    //Perform desired steps for a function call having
    // neither values of the proID nor proDesc
    return true;
    </script>
    Again, I am sure this solution works for objects within a <form name="xyz"...> html form. There is a possibility that this function call will work outside of a html form environment, but I simply can't recall implementing it in that fashion.
    Hope this helps.

  • Grey out section if select radio button

    Hi, this question is probably answered elsewhere, but I couldn't find. Am totally noob at Javascript or any scripting at all
    I have a form which is rather complicated, where the clients would only need to fill certain sections depending on their selection. Also the form in PDF may be printed out by some clients whom may not be comfortable filling it online.
    I have a few radio buttons, where if depending on the selection, a particular group of fields to become greyed out. . E.g. if selected option 1, the whole section A would be disabled (not hidden).
    Can anyone help me with a script which can perform this function? Also, if the client decides to toggle to option 2, the Section A would be enabled back. Also when printed out, the section would still appear for Operations to be able to see that form is filled up as a whole.
    rgds

    It's also a good idea to reset any fields that you disable so that they don't then contain invalid data. So the script that Michael posted could be changed to:
    if (event.target.value != "Option1") {  // If Option1 radiobutton is off, unlock Section A
        this.getField("SectionA").readonly = false;
    } else {
        resetForm(["SectionA"]);  // Reset the SectionA fields
        this.getField("SectionA").readonly = true   //Otherwise, lock Section A
    For this to work correctly, you have to set the SectionA fields to read-only before any of the radio buttons is selected.

  • How to select radio buttons

    Hi All,
    i create 5 radio buttonss.
    assign one radio group for all radio buttonss.
    whenever i am clicking the first radio buttonnn
    after selecting the first radio buttonn
    automaticallyy the last radio button is selectedd.
    i don't want to create the last radio buttonn
    which radio button i selected only that radio button is selected
    remaining all r deselected
    for these radio buttonss
    i create a cell format layout under a flowlayout.

    When the last radio button is get select. I think you must be clicking on some save or submit button.
    What you have to do is to write the below method in Process Request in Controller.
    OAMessageRadioButtonBean appleButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("GroupButtonOne");
    appleButton.setName("fruitRadioGroup"); // Radio Group Name
    appleButton.setValue("APPLES");
    OAMessageRadioButtonBean orangeButton =(OAMessageRadioButtonBean)webBean.findChildRecursive("GroupButtonTwo");
    orangeButton.setName("fruitRadioGroup"); // Radio Group Name
    orangeButton.setValue("ORANGES");
    OAMessageRadioButtonBean grapeButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("GroupButtonThree");
    grapeButton.setName("fruitRadioGroup");// Radio Group Name
    grapeButton.setValue("GRAPES");
    OAMessageRadioButtonBean plumButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("GroupButtonFour");
    plumButton.setName("fruitRadioGroup");// Radio Group Name
    plumButton.setValue("PLUMS");
    OAMessageRadioButtonBean mangomButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("GroupButtonFive");
    mangomButton .setName("fruitRadioGroup");// Radio Group Name
    mangomButton .setValue("MANGO");
    Also assign some one VO Attribute to these radio Buttons.
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Selection radio buttons

    hi,
    i need to display two radio buttons
    in one line with good gap in between.
    i declared as below:
    parameters : p1 radiobutton group rad1,
                 p2 radiobutton group rad1.
    but it is showing one below the other.
    can some one help me define the positions of these
    radio buttons.

    Hi ,
    check this out
    selection-screen : begin of block blk1 with frame title v_text.
    selection-screen : skip 1.
    selection-screen : begin of line.
    selection-screen : comment 1(10) text_001.
    parameters       : m_1 radiobutton group gp22 modif id g2 default 'X'
                            user-command chk1.
    selection-screen : comment 20(10) text_002.
    parameters       : m_2  radiobutton group gp22 modif id g2.
    selection-screen : comment 40(10) text_003.
    parameters       : m_both radiobutton group gp22 modif id g2.
    selection-screen : end of line.
    selection-screen : skip 1.
    selection-screen : end of block blk1.
    initialization.
      text_001 = 'plant 1'.
      text_002 = 'plnat2l'.
      text_003 = 'both'.
    Reward points if help ful
    Thanks
    venki

  • Hide/Active web items on select radio button options

    Hi Experts,
    If I click radio button select option A then hide X drop box  and active Y drop box and if I select option B(in radio button) then Y drop box get hide and X drop box get Active.
    How I can do this in WAD
    Please provide the solution ASAP
    thanks
    take care
    vishal sharma

    Hi.
    It is not possible when you use RADIO BUTTON.
    BUT possible if you use regular BUTTON GROUP - you may use SET_ITEM_PARAMETERS and set property VISIBLE to ON/OF as you need.
    Regards.

Maybe you are looking for