Radio button to text field

Hi there,
I have a (probably) easy question to answer for a programming newbie.
I have a radio button - it says are you left or right handed - so two options: left and right - I have also changed their values from 0 and 1 to left and right. I've called the object name: 'handed' and set it to global data
On another part of the form I would like an uneditable text field that says: this person is ... handed
...so in other words there's a gap where I want the text to say 'left' or 'right' - I've also given this field the name 'handed'.
It almost works, but instead of showing the name I get the value (ie. 0 or 1) - can anyone help me to change the value into the text?
Many thanks,
Sunil
I'm using ES4 by the way.

Hi again,
well, I don't know what I did wrong before, but this time round I changed the values from 0 and 1 to right and left and lo and behold it worked - so didn't need to resort to coding for this one.
However, before doing that I tried what you said above but couldn't get it to work - am I missing syntax here - not sure. Also, wasn't sure when the calculate event would happen. Ie. is it instantaneous with when the user clicks on the radio button to make the selection, or does the event need to be triggered somehow - eg. using a button on click etc.?
Thanks for your help though - much appreciated.
Sunil

Similar Messages

  • Help with cfinput radio button and text fields

    I have a series of radio buttons that allow a user to select
    monetary values but I also want them to be able to define an amount
    if they choose so. I was planning on doing this by providing a
    radio button with the value of other and then using a text field to
    allow the user to enter the monetary value. The problem with this
    is that they might enter a user defined monetary value but forget
    to set the radio button to "other".
    I was hoping that I could set the "other" text input field to
    read only until the point that the user selects the "other" radio
    button. Is there a way to do this using onSelect or another method.
    Or is there a better way to approach this problem? Thanks for any
    help or advice in advance.

    Hi,
    You could call a js function which will select the radio
    button "other " when the user types something in(there are various
    events on cfinput). This way the user will not have to worry about
    selecting the radio button and your requirement will be satisfied.
    Hope this Helps.
    Thanks,
    Bhakti

  • Radio buttons on Customer_H fields in Web UI

    Hi Experts,
    I have a requirement to include the Customer_H fields in Web UI. In the Customer_H table, there are 8 fields, which are currently used in the GUI as follows:
    Field 1 & 2 - Type char1 - Checkbox
    Fields 3 - 8 - Type char1 - 3 radio buttons for each field
    (depending on the selection of a radio button, a corresponding char value is set to the field)
    How do I use the same combination of radio buttons for fields 3-8 on the UI? On the UI, I see checkboxes by default for all the 8 fields.
    I have tried the following:
    For each of fields 3 - 8, I have set the following code in their P_GETTER methods:
      CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_radio.
      ENDCASE.
    Thus, in the configuration tab, I can see "Radio button group" written against these fields and field type as "Radiobutton" in the field properties.
    However, on launching the UI, I still see all these fields as checkboxes.
    Please help me in:
    i) Setting up the radio buttons for these fields (do I need to use value nodes?)
    ii) Displaying the radio buttons on the UI
    iii) Capturing the selected radio button's value and updating the customer_h field.
    Look forward to your reply.
    Thanks in advance.
    Regards
    Vicky

    Hi Stephen,
    I understand your point and agree to it.
    However, I have been able to solve the issue now.
    Solution:
    We need to use the P_GETTER method of the EEWB ZZ field to define:
    i) the field type as radio button,
    ii) the radio button group,
    iii) The way radio buttons should be arranged (horizontally or vertically). If we put no. of cols = 1, then these will be arranged vertically.
    We need to use V_GETTER of the same ZZ field to:
    Assign the key & value to the radio buttons (coding is similar as for dropdowns).
    Following is the code:
    *method GET_P_ZZCUSTOMER_H0101.*
      CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_radio.
        WHEN if_bsp_wd_model_setter_getter=>fp_radio_cols.
          rv_value = 3.
        WHEN if_bsp_wd_model_setter_getter=>fp_group.
          rv_value = 'R1'.
      ENDCASE.
    endmethod.
    *method GET_V_ZZCUSTOMER_H0101.*
      DATA:  lt_ddlb     TYPE bsp_wd_dropdown_table,
             ls_ddlb     TYPE bsp_wd_dropdown_line.
      IF GR_DDLB_FIELD0101 IS NOT BOUND.
        CREATE OBJECT GR_DDLB_FIELD0101
          EXPORTING
            iv_source_type = 'T'.
          clear : ls_ddlb.
          ls_ddlb-key = '1'.
          ls_ddlb-value = 'P1'.
          append ls_ddlb to lt_ddlb.
          clear : ls_ddlb.
          ls_ddlb-key = '2'.
          ls_ddlb-value = 'P2'.
          append ls_ddlb to lt_ddlb.
          clear : ls_ddlb.
          ls_ddlb-key = '3'.
          ls_ddlb-value = 'P3'.
          append ls_ddlb to lt_ddlb.
          GR_DDLB_FIELD0101->set_selection_table( lt_ddlb ).
      ENDIF.
      rv_valuehelp_descriptor = GR_DDLB_FIELD0101.
    endmethod.
    Say the field label of the field ZZCUSTOMER_H0101 is "Grade", then it will show in the UI as below:
    Grade    () P1       () P2       () P3 
    () = radio button.
    Hope it helps.
    Cheers
    Vicky

  • Group Radio buttons controlling input fields

    Hi All ,
    I have 3 radio buttons which is grouped in teh form component . beside the 3 radio buttons i have 3 input fields , now i when i click the first radio button the input field beside the radio button should input enabled , rest of the input fields should be disabled ,
    Please share your ideas!!
    Thanks,
    Pradeep.

    Harsha ,
    This is the code in mu get_def method
    APPEND INITIAL LINE TO et_action_definition ASSIGNING <ls_action_definition>.
       <ls_action_definition>-id = 'ADDROW'.
       <ls_action_definition>-action_type = if_fpm_constants=>gc_action_type-validation_independent.
       <ls_action_definition>-imagesrc = '~Icon/AddRow'.
       <ls_action_definition>-VISIBLE = CL_WD_UIELEMENT=>E_VISIBLE-VISIBLE.
       <ls_action_definition>-enabled = abap_true.
    I need the buttons in my list as below
    And in List UIBB i have added 2 buttons
    in the get def i am getting 2 records for add and del but dont know why i am not getting the buttons on screen .
    i have a edit page screen in that i have 2 UIBB , 1st Form UIBB and 2nd LIST UIBB , but when i click the form UIBB its showing as section 1, and the LIST UIBB also in the section1 , i don't think it will be the issue .

  • I made a fillable form using indesign and then acrobat professional but need to have radio buttons trigger different fields showing in the form below them - is that possible and if so how do I do it??

    I made a fillable form using indesign and then acrobat professional but need to have radio buttons trigger different fields showing in the form below them - is that possible and if so how do I do it??

    What version of Reader are they using, exactly? And are you sure they're
    using Reader itself and not opening the file inside a browser window, for
    example?
    On Fri, Feb 6, 2015 at 5:24 PM, jessicao96457206 <[email protected]>

  • Creating radio buttons and text box in the screen

    Hi Guys,
    Need help asap. I am writing a report and I have to create text box for user to input GL account numbers for two types of customer. I have to make these fields required and take the data back from the screen and write it in a file. The second thing that I have to do is to make radio buttons for the user to select whether he wants the file written on the application server or the presentation server. and process the report accordingly. Now can somebody please given some code and tell me how I should do this. Both the things have to be done for the same report. Please help.
    Thanks,
    Minal

    Hi,
    TABLES: likp,
            lips.
    TYPES: Begin of ty_likp,
           vbeln like likp-vbeln,
         end of ty_likp.
    TYPES: Begin of ty_lips,
           vbeln like lips-vbeln,
           posnr like lips-posnr,
         end of ty_lips.
    DATA:  i_likp TYPE STANDARD TABLE OF ty_likp,
           i_lips TYPE STANDARD TABLE OF ty_lips,
           w_lips TYPE ty_lips,
           w_likp TYPE ty_likp.
    SELECTION-SCREEN BEGIN OF BLOCK b_0 WITH FRAME TITLE text-001.
    SELECT-OPTIONS:  s_delno FOR likp-vbeln,
                     s_type  FOR likp-lfart,
                     s_ship  FOR likp-vstel,
                     s_date  FOR likp-erdat.
    SELECTION-SCREEN END OF BLOCK b_0.
    SELECT vbeln
             FROM likp INTO TABLE i_likp
             WHERE vbeln IN s_delno
             AND   lfart IN s_type
             AND   vstel IN s_ship
             AND   erdat IN s_date.
      IF sy-subrc <> 0.
        MESSAGE i000 WITH text-002.
        " No valid deliveries for the selection parameters entered.
        STOP.
      ENDIF.
      IF NOT i_likp[] IS INITIAL.
        SELECT vbeln
               posnr
               FROM lips INTO TABLE i_lips
               FOR ALL ENTRIES IN i_likp
               WHERE vbeln = i_likp-vbeln.
      ENDIF.
    format color 1 on intensified on.
      WRITE: /01(46) 'Following are the Hanging Deliveries/Invoices:'.
    format color off intensified off.
    skip.
    format color 1 on.
      WRITE:  SY-ULINE(27).
      WRITE: /1       SY-VLINE,
              3(12)    'Document No.',
              16      SY-VLINE,
              17(8)  'Item No.',
              27      SY-VLINE.
    write:/1 sy-ULINE(27).
    format color off.
      sort i_lips by vbeln posnr.
      LOOP AT i_lips INTO w_lips.
          Read table i_likp into w_likp with key
                            vbeln = w_lips-vbeln
                            posnn = w_lips-posnr.
          if sy-subrc <> 0.
          format color 2 on.
             WRITE: /1   sy-vline,
                    3(12)  w_lips-vbeln,
                    16  sy-vline,
                    17(8)  w_lips-posnr,
                    27  sy-vline.
            write:/1 sy-uline(27).
            format color off.
            clear w_lips.
          endif.
          ENDLOOP.
    Try this one with ur own example.
    Thanks & Regards,
    Judith.

  • Help me with Radio Buttons and Subform fields, please!

    I've built a dynamic order form with three product options listed as radio buttons. The three options are "Contoured" "Standard" and "Custom". "Contoured" requires five subfields to be filled in if it is selected. "Standard" requires two subfields to be filled in if it is selected. "Custom" has no associated subfields.
    My problem is that I can't figure out a script that isolates the subfields to the appropriate radio buttons. Can anyone suggest a script to use?
    Thanks in advance.
    Brian

    Brian, to understand what I did, I will first explain my hierarchy.
    RBList has 3 radio buttons: A, B, C. Specify the Item Value for each Radio button, e.g. A=1, B=2, C=3. For radio button A, create 2 dropdown lists & 3 numeric fields and wrap in a subform called SubA - ensure you leave it as Visible presence. For radio button B, create 1 dropdown & 1 numeric, wrap in a subform called SubB, and make sure this is visible. I put my code on the subforms (SubA and SubB) rather than the radio buttons. Also, in order for the layout to be saved in Reader, if you want to save and reopen, you must use the script on the Calculate event. The Click event will not save the layout for you (learnt this from past experience in Designer 7.2 Designer 8 saves layout different again). The event Calculates the function as soon as you open up the file.
    Using JavaScript on the Calculate event, on the SubA subform would look like this:
    if (RBList.A.rawValue !=1) {
    this.presence = "hidden";
    else {
    this.presence = "visible";
    Using JavaScript on the Calculate event, on the SubB subform would look like this:
    if (RBList.B.rawValue !=2) {
    this.presence = "hidden";
    else {
    this.presence = "visible";
    The radio button C would not require script if there is not subform needed.
    Let me know if this works for you.

  • Check boxes, Radio Buttons, and XML Field Order

    I am working with Adobe Designer Version 7.0. Hopefully this forum can still address my issues.
    I am creating a registration form that will often be submitted via email to us for processing. To help make the data both easy to transfer for us into our excel file  and to minimize the errors made by the people using the form, I need the form to be able to do a couple of things that I am having a hard time figuring out. My questions are the following:
    I have a list of 7 check boxes that each insert a dollar value into a seperate numeric field on the form. Each check box has a unique dollar value associated with it. Is there any way to design the form so the user can only choose one of the check boxes? I tried using radio buttons in a group, but if a user mistakenly chose the wrong radio button and then selected another button from that group, it would add to the total in the Application Fee field and not subtract out the previous amount. Below is the code i used for one of the check boxes.
    I have two numeric fields that the user must choose one or the other. Can I design those two fields (numHomes and numBuildings) so that if the you enter a value for one field, you cannot enter a value for the other field? Both fields are then calcuated in a seperate numeric field. Below is the code i used for the numeric field.
    I want to be able to take the data emailed to us as an XML file  when a user submits the results via email and directly paste it into our Excel file. To keep the cut and paste process simple, I want to make sure the order of the XML fields matches the order of the database fields so it can be done in one shot. Do you know how to organize the XML fields? They do not seem to correspond to the ordering found under the Hierarchy tab. Any thoughts on this?
    Thanks
    if (this.rawValue == 1) then
           numAppFee.rawValue = numAppFee.rawValue + 350;
    else
           numAppFee.rawValue = numAppFee.rawValue - 350;
    endif
    numHomes * 50 + numBuildings * 100 + numDups * 10

    Create an XML Schema (XSD) and define that as the default form schema. The form data will conforms to the order of fields defined in the XML schema.
    Hope that helps.
    Nith

  • Diable button when text field is empty

    Hi
    How can I disable a button in JDialog box when the text field is empty and enable it when the user gives some input.
    Balaap

    Hi,
    button.setEnabled(false);

  • Disable button when text field is empty

    Hi
    How can I disable a button in JDialog box when the text field is empty and enable it when the user gives some input.
    Balaap

    You will have to use a keyListener since the use is not able to type into a disabled TextField. Listen for KeyEvents, if you get one enable the TextField a fill it with the char of the pressed key.
    Rommie.

  • Adobe Captivate - Multiple Choice Quiz Question - Radio Button and Text Alignment

    I have created a quiz with multiple choice questions.
    No matter what I do I cannot align the radio button and the text for the choices (see below).
    I would like to align the center of the radio button with the center of the letter A) and B).
    I have tried every option that I can think of in the Properties options.
    Please let me know if anyone has a solution for this.
    Thank you

    Thanks for the reply.
    Previously I tried several different combinations of fonts and font sizes, but didn't see any change.
    Does anyone else know of anything else that could effect this situation?

  • Copy Button for Text Fields

    I have created an Acrobat form that contains both company information fields and location information friends.  In some cases these fields duplicate, but in most they are different. I would like to create a single "same as" button to copy all the company information over to the location information fields at one time. I need some help. How do I code a button to do this?

    Thank you, try67. However, as you can probably guess, I’m not very experienced with scripting. When I list your code on multiple lines, inserting the appropriate field names and running the button, the only data that copies over is the first line that’s listed in the script. Below is what I’ve entered:
    getField("locname").value = getField("custname").value;
    getField("locaddress").value = getField("custaddess").value;
    getField("loccitystzip").value = getField("custcitystzip").value;
    getField("loccontact").value = getField("custcontact").value;
    Thank you for your help (and for not laughing at my scripting ignorance!)

  • When i press tab button into Text Field data automatically show from existing table in new Window form

    Hi Expert team
    please give me solution as soon as possible

    Thank you for your reply, Paul.  Unfortunately this suggestion didn't solve the issue.
    After experimenting with it for a bit, it seemed that it might be related to widow/orphan control, but it occurs even with widow/orphan control turned off.
    Does anyone out there have any suggestions?
    Thanks,
    Jason

  • Using radio buttons to set the value of a text field

    I have a set of three radio buttons on a form (a performance evaluation). If I select the "1" button, I want 1 to populate in the text field. The same goes for "2" and "3"
    I have not been able to code the buttons correctly for this scenario, and can't figure out how to do it.
    From a previous post, I was able to get check boxes to do what I want, but they won't really work because I can't set them so that only one back may be selected.
    Can this be done?
    Thanks!

    The information for this specific case isn't anywhere. The best that you can do is understand what triggers each of the events, then ask yourself which of those triggers are pertinent to your current issue.
    http://help.adobe.com/en_US/livecycle/es/LiveCycle_Designer_Scripting_Basics.pdf ...
    The above link contains a great deal of information regarding how to use scripts within Livecycle Designer. The section that you would be most interested in in order to learn about the available events can be found under "Events >> List of Events".
    You needed to use the initialize event so that the text field would be updated when the document was opened. This ensure that the text field has the value of the default radio button when it is opened for the first time.
    You needed to use the change event so that, when the use selects a different radio button, the text field is updated with the new value.
    That's about it. That PDF file that I link to above is a bit long, but it's a great place to get a good grasp of the basics of scripts.
    If you have any further questions, feel free to ask. =) Have a good one.
    - Scott

  • Creating a form with radio buttons that users can fill, save, and e-mail back

    Hi all,
    I am new here, so please forgive me if this answer has already been answered. I have been looking around and still have not been able to find an answer.
    I have created a pdf in InDesign and opened it in Acrobat to create a form out of that existing PDF. The form needs to contain radio buttons and text fields. When I save it to test it out on Adobe Reader (for the typical user), it says that I am only allowed to save it in its original form (without any of the changes) thereby making this form useless (I do not want users to print it out; I'd like them to email the entire PDF back to me).
    I've looked online and found some answers saying that I would just need to enable commenting, but when I tried that, I could no longer select any of the radio buttons in Adobe Reader.
    Any suggestions?
    Thanks in advance.
    I'm on a Mac using Adobe Acrobat 7 Professional.

    You won't see that in 7. It didn't exist until Acrobat 8. Though It would work with PDF's opened by Reader 7.
    The only choice you have is connacting someone at Adob coporate and finding out how to sign up to a Service they have that will llow you to do that.
    Caution: its very, very expensive and unless  your fortune 1000 company you can't afford it.
    OR you could upgrade to Acrobat 10 (if you have a Machine capable of running it - Intel Only) or Acrobat 9 (PPC and INTEL).
    Note the feature they speak of only allows for 500 instances of any one PDF set up to do so.

Maybe you are looking for

  • Where do I add a label tag in the code of a library item?

    Hello, For 508 compliance purposes I need to add a label tag to a list menu that I've created as a library item in Dreamweaver. Can anyone tell me where in the following code should the label code be added and how it should appear. The actual site is

  • Editing a for loop to print correctly

    I have the following code public void printReceipts(){           JOptionPane frame = new JOptionPane();           for(int i = 0; i < borrowersList.size();i++){                for(int j = 0; j < books.size();j++){                     if(borrowersList.

  • CANNOT SYNC ANY PHOTOS TO MY IPHONE

    Hi I have recently upgraded my iphone 4 to the new iTunes 10 & 3.1 firmware for iphone & Im going crazy coz i cant sync any photos to my iphone 4 yet on the bar it shows that i have 3 .6gig on my iphone of photos BUTI havnt,Ive got 36 photos in the c

  • Install webdispatcher and and install webdispatcher as a service

    Experts: We always do both at the same time, i.e.install webdispatcher and and install webdispatcher as a service. However, what is the reason to do it in 2 steps? Why it cannot be done the same way as NW700: the service is created during the install

  • USB720 not recognized suddenly ... unknown device. Help!

    Hello all, I am new to the forum. I have been using a USB720 modem card to connect to the internet w/ laptop. Suddenly  it stopped working, and it doesn't recognize the USB720 card at all when plugged into the USB port. It says the device is not reco