Add radio button when a radio button is selected (pop up)

How do you Add a 2 radio buttons when (pop up when d1 is
selected)
For example d1a and d1b
When d1 is selected.
<cfoutput>
<cfif isdefined("url.msg")>
#urldecode(url.msg)# <BR />
</cfif>
</cfoutput>
<table border="0" cellpadding="5">
<form id="form1" name="form1" method="post"
action="index.cfm?action=actSearch">
<tr>
<td>please enter id no: </td>
<td><input type="text" name="nbr" /></td>
</tr>
<tr>
<td>B1: </td>
<td><input type="Radio" name="bd" value="b1"
checked="checked"></td>
</tr>
<tr>
<td>D1: </td>
<td><input type="Radio" name="bd"
value="d1r"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="Submit"
value="Submit" /></td>
</tr>
</form>
</table>

As you may already know, ColdFusion code runs on the server.
It's not sent out to the web browser. It sends out HTML to the
browser. And what you want to do here is regonize a change that
occurs in the web browser without submitting the form. The way you
can do this is AJAX. If you haven't already done so, check out the
ColdFusion / AJAX library here :
http://ajaxcfc.riaforge.org/.
This will give you a good framework of code to use to do this so
you won't have to reinvent the wheel.

Similar Messages

  • How to enable/disable an image button when one radio button is checked?

    The checked radio needs to equated with some value , if it returns true, then the Image button for submit should be disabled.otherwise, it needs to be disabled always.please help me to pass th' this requirement.
    Thanks in Advance

    look for a function like setActive or setDisable

  • How do I "Add to Library" when iPhoto won't recognise selected photos?

    A few months ago I was unable to import photos from the same Canon camera I've always used with iPhoto. Despite a number of steps taken, the problem has not resolved.
    As I was getting a few erratic problems I decided to rebuild the computer (back up, wipe hard disk, re-install all software,etc.). I then imported the photos from the camera as usual. Last night they imported properly. Tonight those new photos are do not appear in the Library window of iPhoto. Those new photos are, however, in the iPhoto folder. When I try File/Add to Library, I get the message "Unreadable Files: 1 The following files could not be imported (they may be an unrecognised file type or the files may not contain valid data). The message then gives the path to the library "Users/Shared/iPhoto Library/2005".
    Extra information:
    *iPhoto Library in a shared folder so that my partner can access them from her Account;
    *there are 2500 photos in my library;
    *the photos are in .jpg format;
    *I've always used the same camera - Canon IXUS v3;
    *they imported OK yesterday but have disappeared today;
    *I get the same result whether I try to Add to Library one photo or multiple folders of photos.
    *I've read a few threads on these discussion pages but the answers don't seem applicable - if only because of the inconsistency (ie importing OK yesterday and being problematic today)
    I'd be grateful for anyone's help!
    iMac & iBook G4   Mac OS X (10.4.3)  

    I think I understand now. I am thinking you placed these files in the iPhoto Library folder yourself. You need to drag them to the desktop and import them from there, by either dragging them into an open iPhoto viewing window or using the command File>add to library within iPhoto.
    Some more info for you:
    --First thing to know and remember is this...Do not drag any images, folder of images into the iPhoto Library in the Finder. Images have to be imported into iPhoto within the application. Do not scan images and save them into the iPhoto Library folder in the Finder. Save them to another location such as the Pictures folder or even the desktop. You can then import them into iPhoto.
    If you have already put files/folders in the iPhoto Library folder in the Finder then you will also find out that if you try to import them into iPhoto you will get an error message. No worry, just drag them to the desktop and import from there.
    --All images that you import are shown in the library view. You can choose how you want to view, by rolls, by date, by rating, etc. When you put images in an Album, slideshow, book, etc, you are actually just putting pointers to those images in the library. You are not adding more images. If you delete an image from the Album it will still be in the library. If you delete an image from the library it is deleted from iPhoto's database and your hard drive (unless you have it backed up somewhere else)
    --You have a folder of images on your hard drive and want to import them into iPhoto. Drag the folder of images into an open iPhoto Library window and the folder of photos will be copied into the library, resulting in a new roll with the name of the folder. You now have two copies of those photos, the ones in iPhoto's database and the ones on your desktop. You can keep the ones on your desktop that you just imported as backup or you can delete that folder.
    -- you scan a picture/pictures and save it in a folder. You cannot scan directly into iPhoto or the iPhoto Library folder in the Finder.
    You want all your photos in iPhoto so you import them into iPhoto.
    Now you have two copies of that picture/pictures, so you can delete the originals that were in the scanned folder and keep the one/ones that were imported into iPhoto.
    -- You download pictures from your camera into iPhoto.
    There is now one copy of each of the pictures. (DO NOT HAVE IPHOTO DELETE THE IMAGES FROM YOUR CAMERA! DELETE THEM MANUALLY WITH THE CAMERA-if something goes wrong with the import and they are never imported and then they are deleted from the camera you might end up losing those images)
    You want to change something about a picture you imported, such as
    cropping it or changing the size, or changing the orientation.
    Once you do that to a picture, you now have two copies of the picture
    in iPhoto, the original and the edited one. The edited one will be in the library organize view. The original is packed away in an Original folder in your iPhoto Library folder under the date of the roll. You can always revert to the original by control clicking on the photo and choose "revert to orginal" You will not have this choice if you used iPhoto Diet to get rid of the Originals.
    (a quick note on cropping within iPhoto...when you are in edit mode, you automatically will be in the crop mode with cross hairs to highlight the crop area. To finish cropping you must click the crop button and then go back to library view and your cropped picture will be there.
    3.You want to use Photoshop or another graphic program to edit a picture in your iPhoto library.
    You can open up prefs for iPhoto and choose "when double clicking on
    photo ..do" choose "other" and select Photoshop. Now you can edit all
    pictures in your iPhoto library in PhotoShop by double clicking. If you save the photo with the same name and as a flattened file it will be saved right into iPhoto and you will see the changes. If you don't want to save it into iPhoto then do a "save as" and save to the desktop. You will then have the original photo still in iPhoto and your new edited photo on the desktop.
    Or, with iPhoto open, you can drag a picture from the library window
    to your desktop (you see a + sign on the pic you are dragging). You now
    have two of the same picture, one in the iPhoto library and one on your desktop. You can open up the one on your desktop in any graphic program and work on it. The one in iPhoto stays the same. You can also share/export the picture/pictures to your desktop or folder to work on them or do batch processing, etc. You will still have the originals in your iPhoto Library.
    Or, you can open up the ~/Pictures/iPhoto Library/folders and option drag any
    picture out of the folder to your desktop. Notice that you will see a plus sign while dragging the photo. This is copying the file to your desktop
    I would advise anyone not to do this as they might forget to use the option key and drag the photo out. Next time you open iPhoto the photo will be missing.
    Two Apple kbs for you to read
    Don't tamper with files in the iPhoto library folder
    About the iPhoto Library folder
    Don't forget that in Library view you can Control click on any picture and get a contextual menu with many options. One is to revert to original.

  • In a fillable form, can I add a visible label to radio buttons? I'd like to label them 1, 2, 3, etc.

    I'm creating a form that uses radio buttons.  I'd like a number to be inside the button.  Is there a way to add a label to the radio buttons?

    It is not possible to customize the appearance of the radio button at this time. Your options only allow you to select the placement of the label.
    Andrew

  • Run code when a radio button is clicked

    I have a radio group with various radio buttons in there
    named date, time,
    reg etc
    When I click on a button I need the following:
    Which radio button was pressed
    The value of that button eg date, time, reg etc
    Then run some code (I will use the value to run a MYSQL
    query)
    The idea is to be able to sort a table based on the header
    that was clicked.
    Cheers
    SteveW

    Thanks for the help so far.
    I am using dreamweaver 8. ASP VBScript
    I would rather not use javascript as our operators have PDA's
    and we are
    trying to use the same interface for everyone.
    What I am trying to do is re-sort a Table by either reg,
    date, user order
    etc. by clicking on the radio buttons.
    The table is populated with MYSQL have a look at
    http://80.5.54.164/swiff/contact.asp
    user 1 password 1
    Unless there is another way to achieve this
    Cheers
    SteveW
    "bregent" <[email protected]> wrote in
    message
    news:elithk$a5n$[email protected]..
    > >Then run some code (I will use the value to run a
    MYSQL query)
    >
    > >The idea is to be able to sort a table based on the
    header that was
    > >clicked.
    >
    > Are you trying to sort the table by resubmitting a new
    sql query, or sort
    > the
    > table client side? I would suggest the latter.
    >

  • How to handle Event when a radio button in selection screen is clicked

    Hi all,
       What is the Event generated when a radio button is clicked in the selection Screen. My requirement is .If one radio button is clicked a field in selection screen should be greyed.
       Here I used AT SELECTION-SCREEN OUTPUT. but this event is generated only if i press 'ENTER' after clicking the radio button in the selection screen.
       Is there any other way to process this radio button event?
    Thanks&Best Regards,
    Vishnu

    hi,
    try like this
    TABLES : kna1,lfa1.
    SELECTION-SCREEN:BEGIN OF BLOCK blk1 WITH FRAME TITLE text-002.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : rad_but1 RADIOBUTTON GROUP one DEFAULT 'X' USER-COMMAND ucom.
    SELECTION-SCREEN COMMENT 3(26) text-003.
    SELECT-OPTIONS : kunnr FOR kna1-kunnr.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : rad_but2 RADIOBUTTON GROUP one .
    SELECTION-SCREEN COMMENT 3(26) text-004.
    SELECT-OPTIONS : lifnr FOR lfa1-lifnr.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN:END OF BLOCK blk1.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF rad_but1 = 'X'.
          IF screen-name = 'KUNNR-LOW' OR screen-name = 'KUNNR-HIGH' .
            screen-input = '1'.
            MODIFY SCREEN.
          ENDIF.
          IF screen-name = 'LIFNR-LOW' OR screen-name = 'LIFNR-HIGH'.
            screen-input = '0'.
            REFRESH lifnr.
            MODIFY SCREEN.
          ENDIF.
        ENDIF.
        IF rad_but2 = 'X'.
          IF screen-name = 'KUNNR-LOW' OR screen-name = 'KUNNR-HIGH'.
            REFRESH kunnr.
            screen-input = '0'.
            MODIFY SCREEN.
          ENDIF.
          IF screen-name = 'LIFNR-LOW' OR screen-name = 'LIFNR-HIGH'.
            screen-input = '1'.
            MODIFY SCREEN.
          ENDIF.
        ENDIF.
      ENDLOOP.
    reward if usefull....

  • Please solve  Radio buttons (when selected) will then display on the report

    Each of these new Radio buttons (when selected) will then display on the report in the same locations, which is after the existing columns.
    Check boxes are by default checked.
    When the 1st radio button is selected then a new column will be displayed in the ALV output
    Next to A.
    Like wise when 2nd radio button selected then a new column will be displayed in the ALV output next to B.
    Like wise the ALV output is displayed.
    A   is a checkbox
    B  is a checkbox
    C   is a checkbox
    D   is a checkbox
    1   is a radio button                         
    2   is a radio button      
    3  is a radio button
    4   is a radio button

    while populating fieldcatalog itself u include these condition....
    if Pradiobutton = 'X'.
    *--populate field catalog for field u want in specified position....
    endif.
    similarly u proceed for other fields and other condition

  • How to add the BexAnalyser as standard radio button to the add-ins?

    HI All,
    how to add the BexAnalyser as standard radio button to the add-ins.
    Thanks
    Vasu

    What do you want to do? Pls give some more details.

  • Default Radio button when form opens

    Is there a way to make a radio button when form opens?
    for e.g. when we open key flexfield value sets form, key flexfield radio button is default. i want to do when i open the form value set button is defaultly checked.
    thanking you in advance.

    User personalization.
    Find the name of the field for that radio button.
    Write a when-new-form-instance personalization.
    Make the action type =property
    And make the action as default value/initial value = the value corresponding to the default you want.
    Also check http://it.toolbox.com/blogs/apps-traction-blog/oracle-form-personalization-basic-example-11936
    Hope this answers your question,
    Sandeep Gandhi
    Edited by: Sandeep Gandhi, Independent Consultant on Feb 4, 2011 11:43 AM

  • Help:  Need to calculate a radio button when selected or not selected

    I am hoping its possible to use a script to calculate a radio button when it is selected.  For example:
    My form has 4 grouped radio buttons (Radio Button 1-4) of 5 buttons.
    So its something like this:
         Level 1     Level 2     Level 3     Level 4     Level 5
    1.   RB1          RB1            RB1           RB1         RB1
    2.   RB2          RB2            RB2           RB2         RB2
    3.   RB3          RB3            RB3           RB3         RB3
    4.   RB4          RB4            RB4           RB4         RB4
    Items areas total:               Total Points:               Average Score:
    The buttons already have different values set for each button to calculate a score in the "Total Points" text field. (Level 1 scores 1, Level 2 scores 2, etc.)
    I would like to have the "Items areas total" text field to calculate either a value of 1 if selected or a 0 if not selected.  So if 3 of the 4 rows are selected a return of "3" is calculated, if all 4 rows are selected then it returns "4", etc.
    Seems it would be a simple script.
    Thanks

    Hi Franklin,
    I understand that we can show the selected row in different color.
    But still there is a requiremnet given saying that there should be an radio button or Select button or check box (Checked only one at a time of several rows) apart from showing the selected row in a different color.
    Current display of the page:
    We have three regions, 1> Main region, 2> Master region, 3> Detail region.
    Main region has some text parameters, Master region has a adf:table and when ever you select a row on the master region the detail region values are getting refreshed based on the row selected.
    Is there any simple way apart from adding a boolean transient attribute to VO and displaying it as one of the column in adf:table?
    Thanks,
    Sandeep

  • To make a push button invisible when a Radio button is selected.

    Hi,
         There are 5 radio buttons in a group. Out of those when st and 3rd are selected a push button should be made visible else invisible.
        The problem is that when the transaction is executed by default the first radio button will be selected but the push button wont be visible.But if i re-select the 1st radio button then the push button will be visible.
        So is there any way to make the push button visible when the transaction is executed(ie bcoz the 1st radio button is by default selected) or neither of the radio buttons should be selected by default.
    Thanks in advance.

    Hi Sridhar,
    For example say your PF sataus name is 'STATUS-100'  which contains the push button and function code for the button in 'PUSH', then in your part of code use the following syntax,
    Here 'rb_select' is your radio button.
    IF rb_select EQ 'X'.
        SET PF-STATUS 'STATUS-100' EXCLUDING 'PUSH'.
    ENDIF
    I hope this will help you.
    Regards,
    Manoj Kumar P
    Edited by: Manoj Kumar on Dec 15, 2008 12:03 PM
    Edited by: Manoj Kumar on Dec 15, 2008 12:03 PM

  • How do you grey out/disable fields under a radio button if another radio button is selected in Adobe Acrobat XI Pro?

    How do you grey out/disable fields under a radio button if another radio button is selected in Adobe Acrobat XI Pro?
    I’m creating a form where the user has three options to make a payment.
    1. charge to my credit card
    2. charge associated costs to bank account
    3. By cheque or money order
    My Problem is, under each option, there are required fields that has to be filled out. So if the user picks the first option, charge to my credit card, they would fill out the required fields (credit card number, expiration date etc.). But when they click submit button to submit the form, it won’t let them, because there are required fields under the second option. Also, I have the radio buttons for the three options setup so that if the user holds the shift key and clicks a radio button, it unchecks it. So what I'm trying to do is this: If the user selects the radio button for option 1, the other two options are greyed out/disabled. And if the user holds down the shift key and clicks radio button for option one again, it unchecks the radio button and the other two options are available again. Is there a way to grey out or disable the two other payment options when the other one is picked. I’m assuming I will have to use javascript, but what would the coding be and which field do I write it under?
    Thanks in advance guys

    You will have to use custom JavaScript to access the various properties of the field object.
    The radio button group has a value. When no button is selected that value is "Off". When an individual button has been selected the value for the group will be the option or export value for that individual button.
    Once you have determined the button selected, then you will know the form fields that need to be made required. You use JavaScript to access those fields and change the "read only" property to false, and set the "required" property to true. For the fields associated with the other options, those fields should be reset, made read only, and have the "required" property set to false.
    Disabling (graying-out) Form Fields
    >> Also, I have the radio buttons for the three options setup so that if the user holds the shift key and clicks a radio button, it unchecks it.
    Radio button in a PDF do not work that way. Only check boxes can be unchecked by clicking on one that has been checked.
    If you plan the coding for the Mouse UP action to test for all possible options and code for each of those options you should have what you want.
    If you want actual code you need to provide a lot more details.
    It is even possible to perform some credit card and bank routing number validations with JavaScript and some check digit formulas.

  • Using Back button issue for radio button

    Dear All,
    My initial screen has 2 radio buttons, on selecting will take to a selection screen with few fields, i have enabled the back button using MODULE user_command AT EXIT-COMMAND.
      when i select a Radio Button 1 which takes to the Selection Screen 1, if the user clicks back button it works fine, even thou we got a mandatory field, it goes back,
    however when i click Radio Button 2 it still takes me to Selection Screen 1, its the same vice versa.
    Is there anyway i can change the screen based on radio button entry

    Hi Krishan,
    You can call your desire selection screen based on the button click.
    if you are working on report program (SE38), then say you have two radio button p1 and p2 and also you have created two selection screen block B1 and B2 and each block has some selection screen elements i.e fields.
    Now if you want that after radio button click b1, you want the only selection screen block B1 and while clicking radio button b2 click ,you want only selection screen block B2.
    Two acheive this in report programming, use the event AT SELECTION-SCREEN OUTPUT.
    so a demo code for the same,
    SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE text-049.
    PARAMETERS: p_header RADIOBUTTON GROUP asim USER-COMMAND s DEFAULT 'X',
                                p_item RADIOBUTTON GROUP asim.
    SELECTION-SCREEN END OF BLOCK lim.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-051.
    PARAMETERS : p_vbeln TYPE vbak-vbeln MODIF ID sc1,
                  p_audat TYPE vbak-audat MODIF ID sc1.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-050.
    PARAMETERS : p_vbeln1 TYPE vbap-vbeln MODIF ID sc2,
                                 p_posnr TYPE vbap-posnr MODIF ID sc2.
    SELECTION-SCREEN END OF BLOCK b2.
    AT SELECTION-SCREEN OUTPUT.
       IF p_header EQ 'X'.
         LOOP AT SCREEN.
           IF screen-group1 = 'SC1'.
             screen-active = '1'.
           ELSEIF screen-group1 = 'SC2'.
             screen-active = '0'.
           ENDIF.
           MODIFY SCREEN.
         ENDLOOP.
       ELSEIF p_item EQ 'X'.
         LOOP AT SCREEN.
           IF screen-group1 = 'SC2'.
             screen-active = '1'.
           ELSEIF screen-group1 = 'SC1'.
             screen-active = '0'.
           ENDIF.
           MODIFY SCREEN.
         ENDLOOP.
       ENDIF.
    If you are working with Module POOL, then code in the PAI of the screen, and call your respective screen while respective button click.
    code:
    MODULE user_command_900 INPUT.
         IF p1 EQ 'X'.
              CALL SCREEN 9001.
         ELSEIF p2 EQ 'X'.
              CALL SCREEN 9002.
         ENDIF.
    NOTE: your screen 9001 have some screen input fields and 9002 have some screen input fields.
    Thanks & Regards
    Syed

  • Radion buttons under a radio button.

    Hi-
    I have a selection screen with two radio buttons.
    I have the requirement where when I select the first radio button two other radio buttons under the selected radio button should appear.
    Can anyone help me to acheieve this functionality.
    Thanks.
    Ramesh.

    Take a look at this...
    type-pools: icon.
    data: switch.
    selection-screen begin of block b2 with frame title text-001.
    parameters: radio radiobutton group rnd user-command test default 'X',
                radio2 radiobutton group rnd.
    selection-screen end of block b2.
    selection-screen begin of block b1 with frame title text-001.
    parameters:
               test type bkpf-belnr modif id sc1.
    selection-screen end of block b1.
    selection-screen begin of block b3 with frame title text-001.
    parameters:
               test1 type bkpf-belnr modif id sc2.
    selection-screen end of block b3.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'SC1' AND RADIO EQ 'X'.
        SCREEN-ACTIVE = '0'.
        MODIFY SCREEN.
        CONTINUE.
      ELSEIF SCREEN-GROUP1 = 'SC2' AND RADIO2 EQ 'X'.
        SCREEN-ACTIVE = '0'.
        MODIFY SCREEN.
        CONTINUE.
      ENDIF.
    ENDLOOP.
    start-of-selection.
    Kindly stealed from Rich Heilman -;)
    Greetings,
    Blag.

  • My star button on ipad radio is disabled

    My star button on my iPad radio is disabled. According to a review, it's supposed to turn salmon color when selected. Mine is completely disabled as is the X (never play song). Any ideas why &amp; how to fix it?

    Try a Restart.
    Press and hold the Sleep/Wake button for a few seconds until the red "slide to power off" slider appears, and then slide the slider. Press and hold the Sleep/Wake button until the Apple logo appears.
    Resetting your settings
    You can also try resetting all settings. Settings>General>Reset>Reset All Settings. You will have to enter all of your device settings again.... All of the settings in the settings app will have to be re-entered. You won't lose any data, but it takes time to enter all of the settings again.
    Resetting your device
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears. Apple recommends this only if you are unable to restart it.
    Or if this doesn't work and nobody else on the blog doesn't have a better idea you can contact Apple.
    Here is a link to their contacts with most of the information below.
    http://www.apple.com/contact/

Maybe you are looking for

  • How Do I find what my operating system is in my computer?

    I bought a MacBook Pro in June 1010, how do I find out what version of snow leopard I have?

  • IPhone 6 Plus screen rotation issue

    The home and lock screens on my wife's iPhone 6 plus rotate.  Can this be shut off?  And if I turn on the screen rotation lock, will it stop rotation of the lock and home screens as well as the regular use screens (i.e. - apps, Safari, etc...)?  Can

  • How to connect one table to another in XL reporter

    Hi, I have to take Service Type ( warranty) Contract No. from OCTR table which is internally connected to OINS table then to ODLN table so how to connect ODLN to OINS & then to OCTR  table. Regards, Ruheena Tasneem.

  • Container manipulation help

    All, I need some help in designing this scenario. I do not have the luxury to write a custom BAPI. Here is my scenario. A typical async>sync>async with little modification 1. Async call to BPM with input payload 2. BPM calla BAPI_SALESORDER_GETLIST w

  • Can Photoshop Elements 12 work with Photoshop Premiere 13?

    I already have Photoshop Elements 12 and was bought Premiere 13 for xmas and they are not recognising each other. Each keep asking if I want to download the trial version of each? I dont know if you can use Photoshop Elements 12 with Photoshop Premie