Getting Radio Button Value

I have a radiogroup that get its values from a table (For example, the query returns 3 values: Image, Text, Both. And this values are shown in the application). My question is how to get the value selected when one of this is clicked.

OK. You need to use a bit of javascript in your page. In the HTML header section of the page-definition add the following<script>
function hideAndShow(val) {
if (val=='I') {
  $f_Show_On_Value_Item('P90_Radio','P90_item1',val)
  $f_Hide_On_Value_Item('P90_Radio','P90_item2',val)
$f_Hide_On_Value_Item('P90_Radio','P90_item3',val)
if (val=='T') {
  $f_Show_On_Value_Item('P90_Radio','P90_item2',val)
  $f_Hide_On_Value_Item('P90_Radio','P90_item3',val)
  $f_Hide_On_Value_Item('P90_Radio','P90_item1',val)
if (val=='B') {
  $f_Show_On_Value_Item('P90_Radio','P90_item1',val)
  $f_Show_On_Value_Item('P90_Radio','P90_item2',val)
   $f_Hide_On_Value_Item('P90_Radio','P90_item3',val)
</script> For the HTML Form Attributes field of P90_Radio set
onchange=hideAndShow(this.value)
varad
Edited by: varad acharya on Nov 25, 2009 12:53 PM

Similar Messages

  • How to get radio button value in JavaScript

    I have a very simple radio button with two values: 1 and 2. I am trying to pass the value using a JavaScript call to a popup window. I am assuming there is a different method of obtaining the value, as
    var v_typ = document.getElementById("P1520_TYPE").value;doesn't work.

    Hi,
    If you are on Apex 3.x or higher, use JavaScript API function $v
    http://download.oracle.com/docs/cd/E14373_01/apirefs.32/e13369/javascript_api.htm#CHDEJEIG
    var v_typ = $v("P1520_TYPE");Regards,
    Jari

  • Passing radio button values to the backing bean

    Hi all,
    I need help with passing group of radio button values to a backing bean. I have page which has a dataTable to display a list of alerts. For each alert there are two radio buttons (YES & No) to indicate whether the email option for each alert is set or not. Now when i change the radio buttons and click on a submit button i should be able to pass these radio button values into action method in which i need to update the alerts. This is my code
    <h:form>
    <t:dataTable id="sub"
                       var = "alert"
                       value =#{subscriberBean.alertsList}">
    <t:column>
    <h:outputText value="#{alert.name}" />
    </t:column>
    <t:column>
    <h:selectOneRadio id="subscriptions" value="#{alert.sendEmail}">
      <f:selectItem id="item1" itemLabel="Yes" itemValue="0" />
      <f:selectItem id="item2" itemLabel="No" itemValue="1" />
    </h:selectOneRadio>
    </t:column>
    <t:dataTable>
    <h:commandButton id="button1" value="Save changes" actionListener="#{subscriberBean.updateAlert}" />
    </h:form>
    {code}
    I tried to to do something like below and get the updated list in the action event in the backing bean but it didn't work.
    {code}
    <h:commandButton id="button1" value="Save changes" actionListener="#{subscriberBean.updateAlert}" >
    <f:attribute name="alerts" value="#{subscriberBean.alertsList}"/>
    </h:commandButton>
    // Backing Bean
    public void updateAlert(ActionEvent e){
    List<Alert updateList = (List<Alert>)event.getComponent().
                    getAttributes().get("alerts");
    {code}
    Can someone advise how to get these update radio button values in my actionListener method.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    The value the user selected will be written to the sendEmail property of the managed bean named alert. We know this because you set the value attribute to #{alert.sendEmail}. So simply access the managed bean in your action method.

  • To Retrieve dynamic radio button values using jsp & javascript

    Hi All,
    How can i retrive the dynamically created radio button values and also want to get the clicked radio button values.I am using JSP and JAVA beans to retrive the values from the form. I dont have any probs to retrieve combo box values, text box values only problem showing with radio button values. If any data which is entered wrong in the form all the fields should prefills with the old value.Except radio button values all others fields such as combo box, text box values are prefilled with the old values.
    I have given the code for radios.
    document.write('<input type="radio" name="distradio" OnClick="sampleReq.fcidis.value=\'Y\'"/>Yes   ');
    document.write('<input type="radio" name="distradio" OnClick="sampleReq.fcidis.value=\'N\'"/>No');
    document.write('<input type="hidden" name="fcidis" value="">')
    <form method="POST" action="Update.jsp" name="sampleReq" >
    <tr>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='supplier'"/> supplier
    </td>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='customer'"/>customer
    </td>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='distributor'"/> distributor
    </td>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='employee'"/> employee
    </td>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='New partner'"/>New partner
    <input type="hidden" name="requester1" value=""/>
    </td>
    </tr>
    Advanced Thanks for help
    Regards
    Sona

    Hi,
    If you have this code
    document.write('<input type="radio" name="distradio" OnClick="sampleReq.fcidis.value=\'Y\'"/>Yes ');
    document.write('<input type="radio" name="distradio" OnClick="sampleReq.fcidis.value=\'N\'"/>No');
    document.write('<input type="hidden" name="fcidis" value="">')
    <form method="POST" action="Update.jsp" name="sampleReq" >
    <tr>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='supplier'"/> supplier
    </td>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='customer'"/>customer
    </td>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='distributor'"/> distributor
    </td>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='employee'"/> employee
    </td>
    <td class="Txt_gris">
    <input type="radio" name="requester" OnClick="sampleReq.requester1.value='New partner'"/>New partner
    <input type="hidden" name="requester1" value=""/>
    </td>
    </tr>
    this field distradio will not be able Update.jsp.
    You will need to insert these field into the form definition.
    Now, to get a valeu from a radio button, you need only to do request.getAttribute("fieldName").
    To generate dinamically all radio button values, i need to know where are these information? In database? If yes, you need to read the resultset na in value attribute you need to do somethink like this <input type=radio name=fieldName value="<%out.println(resultset.getString("FieldName"));%>">
    If you have more question, only send me a email,
    best regards
    Edney Imme
    [email protected]

  • How can i get Radio buttons  and parameters  in a Single Straight Line

    Hi Experts,
    How can i get Radio buttons  and parameters  in a Single Straight Line...
    Example:
       r1 r2 p1 p2.....
    Cheers,
    Priya
    Points granted.

    Write the following code for the selection screen:
    DECLARATION OF PARAMETERS.
    SELECTION-SCREEN: BEGIN OF BLOCK select WITH FRAME TITLE text-001,
                      BEGIN OF LINE.
                      SELECTION-SCREEN COMMENT 1(10) FOR FIELD p_detail.
                      PARAMETERS p_detail RADIOBUTTON GROUP r1 DEFAULT 'X'.
                      SELECTION-SCREEN COMMENT 25(10)  FOR FIELD p_summry.
                      PARAMETERS p_summry RADIOBUTTON GROUP r1.
    SELECTION-SCREEN: END OF LINE,
                      END OF BLOCK select.
    this will solve your poblem surly. reward the points if you find helpful
    Regards,
    Siddarth

  • How to give the radio button value dml statement

    Oracle Forms6i
    Hai All
    I have created a form I the form i have created two radio button and named as appr, Recmd when i execute the forms appr is marked by default
    So now i need to insert or update this radio button value in my Table
    how can i insert or update this radio button value
    pls tell me the steps to do
    Thanks In Advance
    Srikkanth.M

    Hi,
    :<your_radiogroup_name> will give the selected radiobutton value

  • Setting a Radio Button value using Javascript

    After much research, I've figured out that the appropriate command to get the value of a Radio Button in APEX JavaScript is "html_RadioValue", but I haven't been able to figure out a command that will let you set the value of the Radio Button. Is there documentation on APEX's use of JavaScript that covers this issue?
    Here's a simplified version of the script:
    <script language="JavaScript" type="text/javascript">
    function showval()
    var item1 = html_RadioValue('P19_RADIO');
    alert(item1);
    //Reverse the current selection
    if (item1 == 'Y') then
    <mystery_statement> //set P19_RADIO to N.
    else
    <mystery_statement> //set P19_RADIO to Y.
    </script>
    I've tried the following, but none of them have worked:
    - document.getElementById("P19_RADIO").value = 'N';
    - document.getElementById("P19_RADIO").checked = 'N';
    - $x('P19_RADIO').value = 'N';
    - $x('P19_RADIO').checked = 'N';
    Thanks.

    Okay, that worked in the Oracle-hosted environment, but not in my development environment. Looking at the view/source output from each, it seems that the versions of APEX are different - my environment is using version 3.0.1.00.07.
    The most obvious difference between the sources is the javascript includes at the top:
    <script src="/i/javascript/apex_ns_3_1.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_3_1.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_get_3_1.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_builder.js" type="text/javascript"></script>
    vs.
    <script src="/i301/javascript/htmldb_html_elements.js" type="text/javascript"></script>
    <script src="/i301/javascript/htmldb_get.js" type="text/javascript"></script>
    My fundamental question is: how does one learn Javascript, in the context of APEX? I can't find any documentation that explains what $v means, or what $x means, or what $s means.
    Thanks.

  • AS3.0 Need to Store Radio Button Value  as SharedObject

    I am under a tight deadline. Friday Aug.22!!! I am trying to
    store the value of a radio button (in a group for yes/no) when a
    'Next" button is pressed. I have a nextBtn.addEventListener(...) to
    contain a function which holds code to store the value of each
    radio button on the page into its own SharedObject. As such:
    _so.data.DrugName1 = DrugName1.selected;
    I do not know the AS3.0 code to get the value of the selected
    radio button in a grouping and then to use that value and store it
    into the SharedObject _so.data I have been banging my head for
    days. I fear I keep trying to use AS2 code for an AS3 project.
    AAAAAhhhhhhhh!
    Can someone please help me determine the value or data of a
    radio button or radio button group. Is it "selected" or
    "selectedData" or "getValue()" or "value" or "data" or what ??????
    I don't know where else to turn. :(
    alexdove at comcast.net
    Please email direct if you can help. I'll be sure to re-post
    a solution once I get it.
    Thank you in advance.
    Alex Dove

    FlashTastic, thanks for the reply. I entered the code but I
    cannot get the values to repopulate in the page when I return. I
    try to put the SharedObject data of the radio button back into the
    button on the page but it will not take. Here is my code:
    //*************code in page to load SharedObject value back
    into radio button when the page loads if a value
    exists*****************
    if((HumiraY_Row1.selected == false) &&
    (_so.data.HumiraY_Row1 != null)){HumiraY_Row1.selected = true;}
    if((HumiraN_Row1.selected == false) &&
    (_so.data.HumiraN_Row1 != null)){HumiraN_Row1.selected = true;}
    //******** Here is when the Next button is pushed to save the
    data***
    nextBtn2.addEventListener(MouseEvent.CLICK,
    mouseDownHandler2);
    function mouseDownHandler2(event:MouseEvent):void {
    if(HumiraY_Row1.selected == true){_so.data["HumiraY_Row1"] =
    HumiraY_Row1.selected;}
    if(HumiraN_Row1.selected == true){_so.data["HumiraN_Row1"] =
    HumiraN_Row1.selected;}
    Still stuck. Look forward to another post. :)
    Alex

  • Get radio button list order

    I am making an online exam project and I am currently able to show choices for each question in random order. I want to control all currently open exam sessions so that each student gets a different order of choices during the time of the exam -- to avoid cheating.
    I am thinking the best way is to retrieve choices radio button list items in order and insert them into a table by session and compare order for each new session asking for the same question.
    Is this the best practice?
    How do I get each item from the list and its order to be able to insert it into a table?
    Thank you,
    A

    lake wrote:
    I 'm not much of a math expert but ...
    Let's say you have 5 radio choices 0...4, I am going out on a limb here and predicting there
    are 120 combinations? (there are 5 choices for the first button, 4 choices for the second, 3 for the third,
    2 for the second and 1 for the last?) So I think you could generate a table of permutations
    something like this:
    http://www.orafaq.com/forum/t/162827/0/
    with      test_tab as
             (select 1 digit, 1 rn from dual union all
              select 2 digit, 2 rn from dual union all
              select 3 digit, 3 rn from dual union all
              select 4 digit, 4 rn from dual union all
              select 5 digit, 5 rn from dual
    select t1.digit digit1, t2.digit digit2, t3.digit digit3,
    t4.digit digit4, t5.digit digit5
    from   test_tab t1, test_tab t2, test_tab t3,test_tab t4, test_tab t5
    where  t1.rn != t2.rn
    and    t1.rn != t3.rn
    and    t1.rn != t4.rn
    and    t1.rn != t5.rn
    and    t2.rn != t3.rn
    and    t2.rn != t4.rn
    and    t2.rn != t5.rn
    and    t3.rn != t4.rn
    and    t3.rn != t5.rn
    and    t4.rn != t5.rn
    /note: I did not test that.
    Ok so you would have at least one permutation table per number of radio buttons.
    You would need to randomize the order in the table like assign dbms_random.random() to
    a column say TMPSEQ and then order by TMPSEQ and assign rownum to some field (to get a nice simple key for the records) So then you need a package in plsql that retains
    what was the last key (permuation) that was used. When it hits the max it would reset to 1.
    I think you might actually have to create a different table for each question even if two questions
    had the same number of choices because it would be possible
    under unfortunate circumstances for the counter to be reset precisely at the beginning of another person's
    test. which would totally wreck the effect you were going for :-) Now, I have tried this function:
    http://www.orafaq.com/forum/mv/msg/162827/480976/0/#msg_480976
    As I have choices from 1 to 4 I got 24 rows. Is there a way to separate those values? I want to bind each choice with a number from 1 to 4 and change their order based on the permutation I selected from the table. I think I need a function that returns character at certain position e.g. chatAt(str,i) so it would be like:
    for i 1 to 4 loop
    if(charAt(str,i)=1) then
    Select chid into first_choice from choices where QID=:page_item and choiceNumber=1;
    endif; ....other cases.... end loop
    That would be my first choice in any permutation.
    Is it best to create one SEQ for each question so each session just gets the next value of that question? How do I create SEQ's from PL SQL?
    I also need to lock my SEQ to avoid access from multiple sessions at the same time if I wanted to save that SEQ for future use of displaying choices that were available like they were originally shown. Finally I need to return the list of choices in order to my radio LOV which I still don't know how to do! Probably a join between question table and my ordered choices on equal chid?
    Edit: Maybe this way:
    select TEXT display_value, CHID return_value
    from table(order_choices(:P37_QID_ITEM))
    Instead of the one shown in my earlier post?
    Edited by: Cruncher on Jan 18, 2011 9:22 AM
    Edited by: Cruncher on Jan 18, 2011 9:26 AM

  • Pre-populating forms with radio button values

    I have been pulling my hair out trying to figure out why my action page is not being pre-populate with the value that is passed from the radio button selection. Can get my hands around what I am actually doing wrong. I have changed my code several times and can not keep up with any more. So below, I have included the main page and the action page that needs to be pre-populated with the data from the database. Thank you in advance for you help and time.
    MAIN.cfm
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <!--- Declare and initialize the variables
    --->
    <cfset today = DateFormat(Now(),"mmmm d, yyyy")>
    <cfset current_time = TimeFormat(Now(),"h:mm tt")>
    <cfset application_name = "Corporate Intranet Directory">
             <cfset current_url ='http://'& #CGI.SERVER_NAME# & ':'& #CGI.SERVER_PORT# & #CGI.SCRIPT_NAME#>
    <cfset current_browser = #CGI.HTTP_USER_AGENT#>
    <html>
    <head>
    <title>Employee Directory</title>
    </head>
    <!--- Included heading for the page--->   
    <h1>Employee Directory</h1>
    <body>
    <!--- Display the today date and the current time--->
    <cfoutput>Today's date is #today#</cfoutput><br>
    <cfoutput>The current time is #current_time#</cfoutput><p>
    <!---Display the URL and Browser used for the template --->
    <p><cfoutput>URL of this template: #current_url#</cfoutput>
    <cfoutput>Browser used: #current_browser#</cfoutput></p>
    <!---Insert a field to have the user search by email address --->
    <tr bgcolor = "yellow">
    <td>Search</td>
    </tr><br>
    Email: <input type="text" name="EmailAddress"
    size="20" maxlength="100"><br>
    <input type="Submit" value="Search"><p>
    <!--- Query the Employees table to find the employee who's ManOfTheYear is set to "YES"--->  
    <cfquery name="employeeOfTheMonth" datasource="Directory">
        select
                e.FirstName,
                    e.LastName
                from
                Employees e
                where
                e.ManOfTheMonth = 'Yes'
            </cfquery>             
    <!--- Query the Employees and Departments tables to find employee's First Name, Last Name, Title, Phone Extension, Email Address, and Department Name--->      
    <cfquery name="employees" datasource="Directory">
    select
    e.EmployeeID,
    e.FirstName,
    e.LastName,
    e.Title,
                    e.PhoneExtension,
                    e.EmailAddress,
                    d.DepartmentName,
    d.DepartmentID
    from
    Employees e,
                    Departments d
                where
                e.DepartmentID = d.DepartmentID
    </cfquery>
    <table border="2" bordercolor="blue">
    <!--- Display the Employee of the Month--->   
              <cfoutput query="employeeOfTheMonth">
    <tr>
                <th align="center" colspan="5">Employee of the Month: #employeeOfTheMonth.FirstName# #employeeOfTheMonth.LastName# </th>
                </tr>
                </cfoutput>
                <tr>
    <th>ID</th>
    <th>Name</th>
    <th>Title</th>
    <th>Department</th>
    <th>Phone Extension</th>
                    <th>Email</th>
    </tr>
    <!--- Display the First Name, Last Name, Title, Department Name, Phone Extension, and Email Address--->   
    <form action="admin3.cfm?EmployeeID=#EmployeeID#" method="post">
    <cfoutput query="employees">
    <cfswitch expression="#DepartmentID#">
        <cfcase value="1">
           <cfset backgroundcolor="00FFFF">
       </cfcase>
    <cfcase value="2">
           <cfset backgroundcolor="ff6699">
       </cfcase>
    <cfcase value="3">
           <cfset backgroundcolor="99ff99">
       </cfcase>
    <cfcase value="4">
           <cfset backgroundcolor="ffcc99">
       </cfcase>
    <cfcase value="5">
           <cfset backgroundcolor="cc99ff">
       </cfcase>
        <cfdefaultcase>
            <cfset backgroundcolor="red">
        </cfdefaultcase>
    </cfswitch>
    <tr bgcolor=#backgroundcolor#>
    <td><input type ="radio" name="EmployeeID" value="#employees.EmployeeID#"</td>
    <td><a href="http://localhost:8500/spiderbytes/assignments/employee_details.cfm?EmployeeID=#EmployeeID#"> #employees.FirstName# #employees.LastName#</td>
    <td>#employees.Title#</td>
                    <td>#employees.DepartmentName#</td>
    <td>#employees.PhoneExtension#</td>
                        <td>#employees.EmailAddress#</td>
    </tr>
    </cfoutput>
    <tr>
    <!--- Display the number of employee's in the directory--->
    <td align="right" colspan="5"><cfoutput>#employees.recordCount# Employee(s) found.</cfoutput></td>
    </tr>
    </table>
    <input type="Submit" name="Action" value="Add New Employee">
    <input type="Submit" name="Action" value="Edit Employee">
    <input type="Submit" name="Action" value="Delete Employee"><p>
    </form>
    <!--- Include a footer --->
    <CFINCLUDE template="footer.cfm">
    </body>
    </html>
    ADMIN.cfm
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Add New Employee</title>
    </head>
    <body>
    <CFIF ISDEFINED("Action")>
    <!--- Use the "Action" variable to display the same name as a heading --->
    <h1><CFOUTPUT>#Action#</CFOUTPUT></h1>
    <!--- Determine if the user select Edit Employee or Delete Employee --->
    <CFIF Action IS "Edit Employee" OR Action IS "Delete Employee">
    <!--- Query the database to get the data for current employee the user
    selected--->
    <cfquery name="DisplayEmployeeRecord" datasource="Directory">
    SELECT *
    FROM Employees
    Where EmployeeID = #EmployeeID#
    </cfquery>
    <cfoutput query="DisplayEmployeeRecord">
    <cfset variable.EmployeeID = "#EmployeeID#">
    <cfset variable.FirstName = "#FirstName#">
    <cfset variable.LastName = "#LastName#">
    <cfset variable.DepartmentID = "#DepartmentID#">
    <cfset variable.Title = "#Title#">
    <cfset variable.Salary = "#Salary#">
    <cfset variable.PhoneExtension = "#PhoneExtension#">
    <cfset variable.HomeAddress = "#HomeAddress#">
    </cfoutput>
    </CFIF>
    <form action="query.cfm" method="post">
    <table border="2">
    <!--- Server-Side Validation - First Name, Last Name, Department, and and Email Address are required
    fields --->
    <input type="hidden" name="EmployeeID_required" value="First Name is
    a required field">
    <input type="hidden" name="FirstName_required" value="First Name is
    a required field">
    <input type="hidden" name="LastName_required" value="Last Name is
    a required field">
    <input type="hidden" name="DepartmentID_required" value=" Department ID is
    a required field - Please fill in the coorsponding Department ID for the employee">
    <input type="hidden" name="EmailAddress_required" value="Email Address is
    a required field">
    <!--- Create a table for the names of the fields and the textbox --->
    <tr>
    <td>
    First Name (required): </td>
    <td><input type="Text"
    name="FirstName" size="35" maxlength="35"><br></td>
    </tr>
    <tr>
    <td>
    Last Name (required): </td>
    <td><input type="Text" name="LastName"
    size="35" maxlength="35"><br></td>
    </tr>
    <tr>
    <td>
    Department Number (required): </td>
    <td><input type="Text"
    name="DepartmentID" size="35" maxlength="4"><br></td>
    </tr>
    <tr>
    <td>
    Title: </td>
    <td><input type="Text"
    name="Title" size="35" maxlength="35"><br></td>
    </tr>
    <tr>
    <td>
    Salary: </td>
    <td><input type="Text" name="Salary"
    size="35" maxlength="10"><br></td>
    </tr>
    <tr>
    <td>
    Email (required): </td>
    <td><input type="Text" name="EmailAddress"
    size="35" maxlength="35"><br></td>
    </tr>
    <tr>
    <td>
    Work Phone: </td>
    <td><input type="Text" name="PhoneExtension"
    size="35" maxlength="10"><br></td>
    </tr>
    <tr>
    <td>
    Address: </td>
    <td><input type="Text" name="HomeAddress"
    size="35" maxlength="50"><br></td>
    </tr>
    <!--- Adds the new employee to the Directory database---> 
    <tr>
    <th align "center" colspan ="2">
    <br><input type="Submit" name="Action" value="<cfoutput>#Action#</cfoutput>">
    </th>
    </tr>
    </table>
    </form>
    <!--- Include a footer --->
    <CFINCLUDE template="footer.cfm">
    </body>
    </html>
    </CFIF>

    Thanks for your reply.  The radio button was placed inside the anchor so that when the user selects that employee, it will pre-populate the from base upon the "Action" selected (i.e. Edit Employee and Delete Employee).  I quite sure this can be done with out using javascript.  I know that I accomplish this by using a drop-down list, but I would like to use the radio buttons instead because I would have to change my code.
    Here is the  code with the radio button:
    <tr bgcolor=#backgroundcolor#>
    <td><input type ="radio" name="EmployeeID" value="#employees.EmployeeID#"</td>
    <td><a href="http://localhost:8500/spiderbytes/assignments/employee_details.cfm?EmployeeID=#EmployeeID#"> #employees.FirstName# #employees.LastName#</td>
    <td>#employees.Title#</td>
                    <td>#employees.DepartmentName#</td>
    <td>#employees.PhoneExtension#</td>
                        <td>#employees.EmailAddress#</td>
    </tr>
    Here is are some ways that I coded my form action is coded:
    <form action="admin3.cfm" method="post">  OR
    <form action="admin3.cfm?EmployeeID =# EmployeeID#" method="post">

  • Setting/Clearing Dynamic Radio Button values

    Hi, i have the following Radio buttons defined within an iteration
    <c:forEach items="${searchresults}" var="post" varStatus="status">                                        
         <tr class = "text_results"> 
              <c:url value="/searchposts.do" var="url">
                   <c:param name="postitle" value="${post.postId.postTitle.title}"/>
                   <c:param name="postcode" value="${post.postId.postTitle.code}"/>                    
                   <c:param name="unitcode" value="${post.postId.units.unitCode}"/>
                   <c:param name="auth" value="${post.postId.auth}"/>
              </c:url>
              <td>
                   <a href='<c:out value = "${url}" />'>                                        
                   <c:out value="${post.postId.postTitle.title}"></c:out></a>
              </td>
              <td><c:out value = "${post.mustering}"/></td>  
              <td><c:out value = "${post.rank}"/></td>  
              <td>
                   <html:radio property="incmbt" 
                        value='${post.postId.postTitle.title}'>
                   </html:radio>                                             
                   <a href = "javascript:unCheckRadio(document.searchForm.incmbt)">
                        clear
                   </a>
              </td>                                             
         </tr> 
    </c:forEach>  The property "incmbt" is declared as a form property (String incmbt) with its getters and setters ... i plan to set each radio button with a value from database within an object called post. The actual value to set for each radio is a post title ... I seem to be getting a NULL value when i try to get the value in action class (form.getIncmbt() yields null) ... Am i assigning the value correctly?
    Further, here's is how i clear the values which seems to work
    Javascript
    function unCheckRadio(btngrp) {     
         for(var i=0; i < btngrp.length; i++)
              if( btngrp.checked == true ) {
                   btngrp[i].checked = false;
                   document.write("Selected Radio is :" + btngrp[i].value);
    But the "Selected Radio is :" displays "${post.postId.postTitle.title}", not the actual post title... ???

    I just thought about this quickly, i think its because an href link does not submit form values ... If so, how can i submit the value of a radio button through the <c:param/> tag or any other way after clicking the href link to submit the form?

  • OBIEE 11g Radio Button Value show horizontally instead of vertically

    Hi,
    Can the Radio Buttons Prompt values in OBIEE 11g be shown horizontally instead of vertically on a dashboard prompt.
    Thanks
    Kathy

    I cannot find it in the out of the box functionality. I think it might be possible with some custom programming which I do not have time to investigate.
    If somebody has done this, please let us know if it is possible.

  • When saving form with 'Save As', losing radio button value

    I recently upgraded from Acrobat Pro 8.2 to Acrobat Pro 10.  Now experiencing the following issue:
    I have a PDF form, that is filled by an application.   With Acrobat Pro 10, if I open the completed form, and then use 'File' > 'Save As' > 'PDF', then the radio button fields lose their value.  Other fields retain their value, only the radio button fields become blank.   If I use the 'Save' option, then the radio buttons do not lose their value.
    Any help is appreciated!

    Hi,
    Can you check on your page to see if you have "reset page" process - if so, you could probably remove it. Also check on your page branches so see if you are clearing the cache for the page. If your page item is not related to a table field, you can also change the "Source Used" setting for it to "Only when current value in session state is null".
    When you submit a page, all page items should be stored in the session and would be available the next time the page is reloaded UNLESS you clear the cache for the page or the Source settings instruct Apex to retrieve the value from elsewhere - the above are the most likely causes, so check them first
    Andy

  • How to disable a field on the basis radio button value selected.

    hello to all,
    i am facing one problem.I have declared two selection screen blocks.
    In one i hvae declared two radio button r1 -Fiscal year and r2--Datewise.
    And in another selection screen block all i/p fields. like plant. date.year etc.
    Now if user select r1-Fiscal year  then i/p field - date of second block should be disable.
    And if user select r2-Datewise  then i/p field - year of second block should be disable.
    SELECTION-SCREEN BEGIN OF BLOCK BLK WITH FRAME
              TITLE TEXT-002.
           PARAMETERS: R1 RADIOBUTTON GROUP RA1 user-command ucomm,
                       R2 RADIOBUTTON GROUP RA1 DEFAULT 'X'.
       SELECTION-SCREEN END OF BLOCK  BLK.
    selection-screen begin of block b1 with
      frame title text-001.
    parameters : gjahr like ZSA_DETAIL-gjahr  MODIF ID YAR,
                 aedat like ZSA_DETAIL-aedat  MODIF ID DAT,
                 werks like ZSA_DETAIL-werks .
    selection-screen end of block b1.
    AT SELECTION-SCREEN on RADIOBUTTON GROUP RA1.
       BREAK-POINT.
        IF R1 = 'X'. "fiscal
         LOOP AT SCREEN.
            IF screen-group1 = 'DAT'.
             screen-active = 0.
             screen-invisible = 1.
             MODIFY SCREEN.
             ENDIF.
            endloop.
       ELSEIF R2 = 'X'.
         LOOP AT SCREEN.
         IF screen-group1 = 'YAR'.
           screen-active = 0.
          MODIFY SCREEN.
         ENDIF.
         ENDLOOP.
        ENDIF.

    Hi Shikha,
    Regarding your query, when you select a particular radio-button then the fields pertaining to that radio-button should get activated or get displayed, otherwise it should be hidden.
    This can be done adding the addition to the Radiobutton 'USER-COMMAND' this will automatically enable-up
    the functionality of the fields related to that radiobutton, while disabling the others.
    If USER-COMMAND isn't given, then ENTER key serves the purpose.
    DATA:
    w_carrid LIKE sflight-carrid,
    w_connid LIKE sflight-connid.
    PARAMETERS:
    p_carrid RADIOBUTTON GROUP airl USER-COMMAND airline,
    p_connid RADIOBUTTON GROUP airl.
    SELECT-OPTIONS:
    s_carrid FOR w_carrid,
    s_connid FOR w_connid.
    INITIALIZATION.
    p_carrid = 'X'.
    Now enabling desired fields and disabling the others, can be done by the following snippet.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF p_carrid EQ 'X'.
    IF screen-name CS 'S_CONNID'.
    screen-active = 0. " Disable the field S_CONNID
    MODIFY SCREEN.
    ELSEIF screen-name CS 'S_CARRID'.
    screen-active = 1. " Enable the field S_CARRID
    MODIFY SCREEN.
    ENDIF.
    ELSEIF p_connid EQ 'X'.
    IF screen-name CS 'S_CARRID'.
    screen-active = 0.
    MODIFY SCREEN.
    ELSEIF screen-name CS 'S_CONNID'.
    screen-active = 1.
    MODIFY SCREEN.
    ENDIF.
    ENDIF.
    ENDLOOP.
    Hope, this would help you solve your problem.
    Thankyou,
    Zahack.

  • How to get Radio button select event in my co

    Hi,
    I want to get the radio button selection event in my co,how can i get the event?

    Hi,
    841475 wrote:
    I want to get the radio button selection event in my co,how can i get the event?---There is no event for radio button.
    ---U need to explicitily set the event for the radio button.
    Action:FirePaatialAction
    Event:RadioEvent---Get the event in co by below code:
    if("RadioEvent".equals(pageContext.getParameter(EVENT_PARAM)))
    ---In radio button event..:)
    Regards
    Meher Irk

Maybe you are looking for

  • How can I show an active page on menu?

    I am working in DW CS3 and using a Spry menu and want to be able to show the active page on the menu. Have looked at previous discussions but am still very confused. New to DW and not very code editing proficient. Please help.

  • CD burn error in Finder and iTunes:

    MATSHITA DVD-R   UJ-875 "The attempt to burn a disc failed.  The disc drive didn't respond properly and can't recover or retry" Has there been any new resolutions to this issue?  many thanks, burlmac

  • Effect of cancellation of PO on nshopping cart

    Hi , we are using extended classic scenario . Carts after approval create PO. If purchaser deletes the PO, does this shopping cart open up again so that requisitioner can make changes to the cart and cart retrigger an approval workflow again. Sumendr

  • Why cant my voice be heard to people i call

    when i make a call, i can hear the person speak but they cant hear me. Whats gone wrong and how can i fix? thanks

  • Flash Player FLV SWF Confusion

    Fellow Forum Members, I"m using Acrobat 10. I have installed the latest Flash Player and Quicktime apps. I'm also using Adobe Media Encoder V4. The work flow I'm following is as follows: 1. I'm using Adobe Media Encoder to convert MP4 to FLV format.