Numeric Value for Radio Buttons

This should be easy for the experts:
I got a bunch of 10 exclusion groups containing 3 radio buttons each. Every radio button got a numeric value associated, meaning the user is picking a numeric value by selecting a given radio button pretty much like the tests on the magazines in which the people pick options like "single= 10 points, married=5 points, engaged=1 point)
In the bottom part of the same form I got a table of one one column and 10 raws sumarizing the 10 already mentioned above.
The aim: to place the value coming from the radio button in the specific cell of the table.... in short, I want a script that allows me to palce the value of the selected radio button somewhere else in the same form, a numeric field for example.
Thanks,

Hi try67,
Thank you so much for your help. Your code has brought me one step closer, I would never have gotten even this far without it!
Initially, it was giving me and error, so I added a ")" and now it does display "Mastery", but I cannot get it to display the other two ("Acquiring" and "Practicing"), it just displays a blank space but does not give me an error.  I tried to fix it on my own by searching for some help, so I found and started playing around with jsbeautifier.org and JSLint. However, since I really don't know much about coding or syntax I hope these were not harmful. So now the code looks like this:
// name for the text box field;
var cTextBox = "Firm-Wide Talent Strategy Knowledge - Totals";
// get the value of the field with the name in cTextBox;
var sTextBox = +this.getField(cTextBox).value;
if (sTextBox >= 1 && sTextBox <= 2) {
    event.value = "Acquiring";
if (sTextBox >= 3 && sTextBox <= 4) {
    event.value = "Practicing";
if (sTextBox >= 5 && sTextBox <= 6) {
    event.value = "Mastery";
} else {
    event.value = "";
Do you know what I might be missing that prevents "Acquiring" and "Practicing" from displaying? 
Thank you so much again for your help,
Chris

Similar Messages

  • ADF 10.1.3 -  Default value for radio button

    Hi
    How to set the default value for Radio button?
    I have Yes and No fixed values for a radio button, and couldn't find any option to set the default value.
    How can I set Yes as default value?
    Appreciate your help.

    FrameworkSpl,
    What are you using for the model layer? If you are using ADF Business Components, simply set the default value for the attribute upon which you are basing the radio buttons.
    John

  • How to set value for radio button in sap crm survey suite

    Hi ,
    I created a survey in CRM Service, in which I added a question with answer as '10 Selection Button Group ('radio button'). And answer has 11 answer options (which means 11 radio buttions). Now when we test the survey, the value for the radio buttons is appearing like 'id_0050569b03091ee480a29d8ee61e953c'. But i want to set a specific value for each radion button (from 1 to 11). So, how to set value for radio button in sap crm survey suite???.
    Thanks & Regards,
    Seshu

    Hi,
    I found solution myself. Click on Goto -> Editing Mode -> Expert Mode. Now you can set value for radio button.
    Regards,
    Seshu

  • Selection values for radio button

    Hi everybody,
    I want to use radio button which display revenue in function of airline class ...
    Then, for the different values, i want use:
    Text: Economic --> Values= A,B,C,D
    Text: Business  --> Values=G,H,J
    Text: Flex         --> Values= others values than A,B,C,D,G,H,J
    How i can proceed ?
    Thanks for your help
    Rodolphe.

    Hi,
    I think you can approch the issue better.
    Same text can't pass different values because this way you "lose data".
    The user can't differentiate between Economic with value A or Economic with value B.
    If you like Econimic to be "translated" to A and B and C and D, you have to do it on the element inwhich you are using the Economic's semantic using IF statements.
    For example, you can have 9 graphs: 4 Economic (one for A, one for B etc.), 3 Business and 2 other.
    You can have a visibility condition for the Economic graphs, such as @RadioButtons=="Ecomonic".
    If you'd like to elaborate on your end goal, I'll be more than happy to help,
    Regards,
    Shay

  • How to check the default checked  value for radio button on jsp for struts

    Hello , I just want to check the default checked value in JSP for a radio button, how can i do that?
    <html:radio property="sale" value="permanent" style="vertical-align: middle;">Permanent</html:radio>
    <html:radio property="sale" value="temporary" style="vertical-align: middle;">Temporary</html:radio>

    you can set the default value for property ( which you want to default selected when the form is first loaded) in reset method of the form.
    <html:radio property="sale" value="permanent" style="vertical-align: middle;">Permanent</html:radio>
    <html:radio property="sale" value="temporary" style="vertical-align: middle;">Temporary</html:radio>
    In the above case you can write the code as follows in the perticular form of this jsp.
    public void reset(ActionMapping mapping, HttpServletRequest request) {
    super.reset(mapping, request);
         sale = "permanent";
    This will show the first check box default selected when the first time the page is loaded.

  • Getting form field values for radio button

    Hello to the forum.
    I have a form in which I want to control the value selected in a radio buttons field on whether to allow access to another field.
    I can't find info neither here nor in the examples.
    Anybody know how to do?
    Thank in advance.

    Hi,
    You can use the change event of the radio button list.
    Select the readio button list exclusion group, in script editor select the "change" event. As an example if we have two selections "aa" and "bb" which have values 1 and 2 respectively.
    You can write this Javascript code to change event.
    if(this.rawValue == 1)
    xfa.host.messageBox("aa");
    else if(this.rawValue == 2)
    xfa.host.messageBox("bb");
    Hope helps,
    Asiye

  • How to get numerical value for every button

    Hi,
    Currently I am using a case structure to determine which graph i want to display. For example, each case( i have 7 cases), there is a frequency,amplitude dial which user can change it. So basically there are 7 of those. Let say the user want to change case 1 and display those. I've plan to place a button PLAY beside the frequency dial so that it will activate the case 1. But the problem is how can i do that as the input for the case structure is numerical (0-6) to select the case. How can i activate case 1 for an example, when i click the button PLAY beside the first dial? Is it possible to change the configuration of the button PLAY, so that when its activated, it will give out numeric 1 and i wire to the case structure input? Thanks guys.

    Maybe you want to use a single radiobutton control with seven items?
    Here's a quick example.
    (Also, see what happens if you wire the radiobutton control to a case structure. )
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    SelectWithRadio.vi ‏22 KB

  • Func- Code for Radio-button in Module-pool Prg.

    Hi Friend's.
    I have define 2 Radio button
    on Module-pool screen.
    I am not been able to triger the Radio button in
    Pai .
    How can i assign the function code for
    radio-button in module-pool.
    pls can any one help me

    Hi,
    For radion buttons, what ever the name you will give that name only will hold that value ( Either selected or not ). But this variable should be declared as global variable in main program.
    Still if you want to assign function code, you can assign one like other fields on the screen.

  • How to get dispaly value of radio button

    hi i have situation where i what to get display value of radio button,for example i store value A in db but i display Active in my radio button how can i do that
    my radio button is
    <af:selectOneRadio id="sor3" layout="horizontal"
                                   value="#{pageFlowScope.InternalBean.status}"
                                   autoSubmit="true"
                                   valueChangeListener="#{RadiobuttonPopupBean.activationChangedListener}">
                  <af:selectItem label="Active" value="A" id="si10"/>
                  <af:selectItem label="Inactive" value="I" id="si9"/>
                </af:selectOneRadio>
    i what to display the value in this outputtext
    <af:outputText value="Reason: #{bindings.Reason.inputValue}" id="ot9"
                               partialTriggers="d1" inlineStyle="height:100px;"/>
    am in jdeveloper 11.1.1.6.0

    adf009, the answer was given in my blog I posted to your other thraed JDeveloper: Showing a Popup when Selecting an af:selectOneRadio | JDev &amp;amp; ADF Goodies
    You only have to read it and the link provided inside the blog pointing to the other blog entry.
    use
    <af:outputText value="Reason: #{pageFlowScope.InternalBean.status}" id="ot9"
                               partialTriggers="d1" inlineStyle="height:100px;"/>
    to output the text.
    By the way your code snipplet isn't understandable without knowing the context around it. You always should mention if you post code from someone else (at least give a link to the source).
    Timo

  • Global binding for radio buttons needs tweaking

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

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

  • Why not autoskip for radio buttons? and the  update_allowed FALSE issue

    I would so dearly love there to be autoskip for radio buttons. (forms 11.1.1.4 jre 6...24) There is no autoskip property for the radio group nor for the individual buttons.
    I don't find an easy way to emulate it either. Or am I missing something?
    Anyone else solve this problem already? When the user selects a radio choice I want the focus to move
    to the next enabled item on the form. You can do this with text items but not with radio groups. (In some cases the radio group has a when-radio-changed trigger
    that enables/disables following items). This would all be a lot easier if radio groups just had autoskip. I wonder why they don't?
    BTW the following has cost me a huge amount of time. In 6i it was the case in my experience that if you
    disabled an item like this:
    PROCEDURE disable_item (myitem in varchar2) IS
    BEGIN
         copy(null,myitem);
            set_item_property(myitem,enabled,property_false);
         set_item_property(myitem,visual_attribute,'DISABLED');
    END;Then that could be reversed as so (the weird thing was you had to set navigable also despite not
    having changed it yourself.
    PROCEDURE enable_item (myitem in varchar2) IS
    BEGIN
      set_item_property(myitem,enabled,property_true);
      set_item_property(myitem,navigable,property_true);
      set_item_property(myitem,visual_attribute,'ENABLED');
    END;But in 11.1.1.4 I had lots of trouble with Lov's not rising after the item had been disabled and then
    re-enabled. No error message. Just didn't do it. Eventually I figured out that what happens is that
    after disabling an item the item as also non-updateable. This was not the case in 6i. So then
    the enable item code has to be something like this: [Note despite that not update_allowed it did not
    automatically grey out the item firefox 3.6.17 and it still has to be done programmatically.]
    PROCEDURE enable_item (myitem in varchar2) IS
    BEGIN
      set_item_property(myitem,enabled,property_true);
      set_item_property(myitem,navigable,property_true);
      set_item_property(myitem,visual_attribute,'ENABLED');
      set_item_property(myitem,update_allowed,property_true);
    END;

    Well right now 11.1.1.4 for autoskip for radio buttons this seems to be working ok. Crossing my fingers!
    a block level when-radio-changed trigger with after scope (where item level when-radio-changed triggers
    have before scope) with a simple next_item in there.
    Where I was having problems before was next_item-ing onto disabled items. There was some kind of issue
    with lov's. I'm having less trouble raising the lov programmatically. but also I had the problem that
    items were getting set non-update_allowed without my realization.
    when new item instance:
    declare
         currfield varchar2(70) := null;
    begin     
         currfield := :system.trigger_field;
    if (get_item_property(currfield,UPDATE_ALLOWED) = 'TRUE')
         and (get_item_property(currfield,UPDATE_PERMISSION) = 'TRUE') then
           list_values;
    else
         mess(currfield || ' UPDATE not allowed');
    end if;
    end;(mess is my program to display alerts.)

  • Checkbox and ORA-20507: Invalid numeric value #:# for column

    Hi All,
    I'm facing problems Checkboxes in a form.
    I created a form and report on a table. one of the fields on the form is a checkbox and when ever I want to create a new record or update with more than one value for the checkkbox I obtain the following error:
    ORA-20507: Invalid numeric value #:# for column COLUMN_NAME Where by #:# is numbers
    I think the error occurs at the processes of get_pk and process_row_of_......
    how should I change the processes to accommodate the checkbox values.
    Kind regards
    Mel

    Hi Roel,
    Colunm = number
    LOV Definition
    select product display, prod_num return from product_category_vw
    where prod_num not in (select p.prod_num from product_user_tb p, user_tb u
    where p.user_num = u.user_number
    and u.user_name = :APP_USER)
    ORDER BY 1column = number
    LOV Definition
    select school d, sch_id r from school_tbRegards
    Mel

  • Want to create F1 Help for radio button in my report

    Hi All,
          I want to create F1 Help for radio button in my report program. Which function module should i call in <b>at selection screen on help-request</b>
          Also do I need to define the texts somewhere or I can pass it directly to the function module.

    Try DYN_FIELD_F1_HELP,
    ~Suresh
    that is only for Dic fields..
    Pl take alook at this<a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a243d9b511d1950e0000e8353423/frameset.htm">SAP Help</a>
    ~Suresh
    Message was edited by: Suresh Datti

  • HELP! I need help to understand how to get value on radio buttons!

    hello,
    I realy need the help from anyone that knows how to get value from radio buttons in a JSP.
    I have this :
    <%
    java.util.Vector vLinha = (java.util.Vector) datos.get("ConsNefect");
              java.util.Hashtable ordens;
              java.util.Enumeration eLinha = vLinha.elements();
              String t = "radio";
              String x = "escolha";
              String l = "";
    int i = 0;
              //int esc = 0;
    String fila = "";                         
              boolean bol = true;
    while (eLinha.hasMoreElements())
    ordens = (com.ibm.dse.base.Hashtable) eLinha.nextElement();     
              if (++i%2 == 0)
    fila = "formgriscla";
    else
    fila = "formgrisosc";
    out.println("<tr>");
    out.println("<td class=\"" + fila + "\">");
    out.print("<p class=\"dato2\">");          
              out.print("<a href=" + urls.get("action"));
         out.print("&sequencia=" + (String) ordens.get("sequencia"));                    
         out.print(">");
              out.print((String) ordens.get("descricao"));
         out.print("</a></p></td>");
              out.println("<td class=\"" + fila + "\">");
    out.print("<p class=\"datop\">");          
              out.print((String) ordens.get("datap"));
    out.print("</p>");
    out.println("<td class=\"" + fila + "\">");
    out.print("<p class=\"datop\">");
    out.print((String) ordens.get("erro"));
              out.print("</p>");
              out.println("<td class=\"" + fila + "\">");
              out.print("<p class=\"datop\">");     
              l = (String) ordens.get("sequencia");     
              out.println("<input type=\"" + t + "\" name=\"" + x + "\" value=\"" + l + "\">");          
              out.print("</p></td>");      
              out.println("</tr>");
              //esc++;
    %>
    <!--input type="Hidden" name="escolha" value=<!--%l%>-->
    <!--input type="Hidden" name="escolha" value="<!--%=escolha%>"-->
    </td>
    </tr>
    I don�t know how to take the value... PLEASE HELP ME OUT!
    THANKS TO ALL!,
    Best wishes,
    Alex (portugal)

    You must wrap your contents into a FORM element and, then, using getParameter("escolha"), retrieve your value.

  • Dynamic-actions/expressions for Radio button in VC

    Hi,
    I would like to know whether dynamic actions for radio-buttons are possible in VC??
    I have a situation where, i have to display/hide an input-field according to the radio-button that i select.
    Is this possible in VC??
    Because, i do not find any place where i can write expressions for a radio-button so that it can take actions accordingly.

    Actually its possible.
    Here is the sample code for this.
    tables : kna1.
    parameters : chk1 radiobutton group g1 user-command abc,
                 chk2 radiobutton group g1.
    parameters : chk3 type kunnr.
    at selection-screen output.
    loop at screen.
      if chk1 = 'x' and screen-name = chk3.
          chk3-active = '0'.
      endif.
    endloop.
    In this way you can hide a input-field on the screen.

Maybe you are looking for

  • Quicktime takes way too long to start playing a movie accessed over Samba

    I keep all my AVI files on a Linux server, shared via SMB and mounted on my Mac. Under Tiger, I could double-click on an AVI file and Quicktime would immediately open and playback could start immediately. Since upgrading my Mac (a high end DeskPro) t

  • How to load up new os on unpartitioned hard drive

    i downloaded driver genius because i had downgraded fom vista and the drivers were hard to find. anyways driver genius loaded the wrong video driver and it initiated the blue screen error message"page_fault_in_non_page_area 0x00000050 (oxf7b44703, 0x

  • Looking for app: show # of files inside folder

    Does anyone know of an app that will show the number of files contained inside a folder on the desktop? I'm looking for something along the lines of the new-mail indicator for the Mail dock icon. Thanks!

  • Split or offset

    HI experts, I have a string with 150 lenth ,i ahve to split or offset this string into two parts, with 75, 75 lenths, please give me an idia on this. thanks in advance. Radhakrishna

  • Why activation is requiring in an application?

    Spoiler (Highlight to read) Hi all, I have built an application in LabVIEW 2011 platform. The vi inside this build consists of basic LabVIEW functions and some functions from Vision development toolkit. So at the time building the application I have