Radio Buttons, Coldfusion and HTML

Hello.
I want to use 4 radio buttons. Each one has a different $
amount. The user chooses a radio button ($ amount) and then clicks
on the PayPal donation button which sends the user to the PayPal
payment page with the correct $ amount chosen.
The HTML code for the PayPal link allows me to use the
following code:
<input type="hidden" name="amount"
value="<cfoutput>#MoneyAmount#</cfoutput>">
I just have to figure out how to get the MoneyAmount chosen
by the user depending on which radio button is chosen.
I do not want to put the radio button into another form
because as I understand it the user would have to click another
submit button first via cfform. That defeats the purpose. Any way
to find out which button is chosen with out using the submit
button?
If you are confused at what I am talking about, check out
this website that has what I want:
http://www.licadho.org/donation.php
They do it with Javascript but I am sure I can do it in
ColdFusion.
Any ideas.
I appreciate the help.
Pedro

They appear to do it with a simple form, not javascript.
Plus, they have radio buttons on the form. What exactly are you
having difficutly with?

Similar Messages

  • Radio button 'Names' and grouping

    Ok, I am still working on my Monster form...
    Probably pushing the envelope for what Forms can do...but hey...
    My "buttons" are all named "Button.section.number"  (ex. Button.1.13) so that my validate scripts can quickly go through and build other tables and things....
    In each section, there are 3-4 buttons where I want at-least-one to be selected.
    Obviously, a "Radio Button" will give me ONLY one selected, but I am having NAME problems in that when I try to name them so the scripts will work the button  come out of the group. (and crash Acrobat)
    so...in a section, what I want to have is:
    Button.2.0     (.hidden,  .value = "Grounds")
    Button.2.1 \
    Button.2.2  want these 4 in an exclusive group, where an entry is ".required" for at least one of them
    Button.2.3 /
    Button.2.4              A validate script runs later that looks for "blank" .required fields and reports out using "userName" in an "appAlert"
    Button.2.5
    Button.2.16  (.hidden, .value= "MAX")
    My Validate scripts go through all the sections and all the buttons finding boxes that are checked that represent problems, and copy's the fields "Export Data" to a summary page -AND- looks for empty .required fields  (and other things)
    I would LIKE the user to be forced to select  one of : Serviceable, Deficient, Hazard or N/A  for each section.  (Button.1.1, Button.1.2, Button.1.3, Button.1.4 in this example)
    Do I need a "button_up" script (the same in all 4 buttons) that makes sure there is at least one selected. and clearing/setting the .required's on the fields ?  That seems messy.  I could start the form with the last choice (N/A) checked, but that seems error prone. 
    The current validate script checks for empty .required fields, so if I make all 4 fields as required I will get 4 error messages, not ideal....
    Ideas Please??
    Idea as I was writing this.... Since Button.section.0 is hidden, I can toggle the .required flag on that?  But I still need a script that will set/clear the .required when the user select -any- of the checkboxes/buttons
    In case people are interested, all my sections are different sizes, but Button.section.0 contains the "Section Name" ('Grounds' for example) and when (Button.Section.number).value  = "MAX" you have reached the end of -that- section. It works very nicely and is FAST becasue the build is only done when requested, not continously..
    PS...this works with PC Reader ONLY.  Android reader does not support this but qPDF for Android does.

    I had the same problem; hopefully my solution will be of help to anyone searching this problem via a search engine.
    http://forums.adobe.com/message/4347266#4347266
    Individual radio buttons cannot be named (only the overal exclusion group can be named) or else rawValues will not export.

  • 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.)

  • Supress radio buttons "Confirmation" and "Invoice" in SHC status overview

    Hello,
    We use SRM 5.0 - Classic escenario.
    I need to know how one can supress the "confirmation" and "Invoice" radio buttons which appear in the status overview of the SHC after the Purchase Order has been created for it.
    Is this Config, Profiles or a BADI one has to aplicate.
    In the last case, can anyone send me some example coding.
    Thanks for any answer,
    Aart

    Hi Disha,
    SDN does not allow me to send my  direccion in one piece.
    So I cut it up in three parts, just add the bits to get the full direccion
    1.     aart.engbersen
    2.     @
    3.     visionone.cl
    Thanks
    Aart

  • How to default the radio button confirmation and invoice in shopping cart

    Hi Guys,
    In the shopping cart for a limit item I need to default the radio button for CONFIRMATION AND INVOICE as it is now defaluted to INVOICE ONLY .
    Please let me know how to change as I could not achieve it through UI badi.
    Thanks & Regards
    Arun

    Did you try the suggestions mentioned here: To make the field for Display only on the Shopping Cart Portal
    I'm looking for a way to restrict the "Invoice Only" option depending on the product category selected.  Do you know I would do this?
    For example only allow "Invoice Only" to be selected if Product Category X is selected.  If product category Y is selected then grey-out "Invoice Only".
    Matt

  • PAGE RADIO BUTTONS and APPLICATION ITEM VALUE

    I have several pages that use same radio button group that permits filtering the report query (of course on each page, it is a page level radio button item).
    I created an application item value to hold the last used value of a radio button item.
    On login, I would like the application item value set to a default value.
    For a given page using the recurring radio button group item,
    I would like the radio button item value set to the application item value on entry into a page.
    I would like the report to use the application item value on entry to a page.
    I would like the application item value be updated anytime the page level radio button item value is changed, so that when you move to another page,
    the next radio button group and report can use the last selected radio group button value.
    I am trying to use a variety of solutions in COMPUTATION and CONDITIONAL COMPUTATION... to include use of set_session_state procedure, and I am not getting desired result, partial success, but not complete.
    Can you have a computation item that is only for initialization of the report and radio button group on page entry?
    And a separate computation item that senses user selection of another radio button, updating the report, and updating the application level item?
    Help requested. Thank you.
    Would be nice to have application level objects, like radio button groups.

    Created Page 0
    Created an HTML region in COLUMN 2 and SEQUENCE 10.
    Selected under region CONDITION:
    Current Page is contained within Expression 1 as comma delimited list of pages
    in the EXPRESSION 1 provided the requested comma delimited list of pages that I wished the HTML region to appear.
    Created the radio button group item P0_RADIO and assigned to Page0 HTML region.
    Selected under item CONDITION:
    Current Page is contained within Expression 1 as comma delimited list of pages
    in the EXPRESSION 1 provided the requested comma delimited list of pages that I wished theradio button group to appear.
    In SHARED COMPONENTS I created an APPLICATION COMPUTATION
    In the computation I created a PL/SQL function to initialize the radio group
    BEGIN
    IF :P0_RADIO IS NULL THEN
    RETURN 'A_ALL';
    ELSE
    RETURN :P0_RADIO;
    END IF;
    END;
    'A_ALL' being the default value for :P0_RADIO
    Radio group appears on the desired pages, is initialized to the desired default value, and works properly on each page.

  • Radio button and  show text

    hello
    i am assigned to create a page (index and action page) where
    the index page has a group of radio buttons ( 4 of them) . if one
    of the four the radio button is selected then a text (paragraph of
    about 30 lines) is shown in the action page after a submitt button
    or next button . can this be done????
    if it can be done how and what is the code for it
    thanks

    display paragraph comes from???
    i dont know yet. would it be better if
    can i just store it on same page where the radio button is
    declared?? then send it to the action page myactionpage.cfm
    this is the example so if a radio button ( a combination of
    radio button it will display in a page)
    what will be displayed for every combination there will be a
    paragraph.
    for example if a radio button bob and camping then i will
    show in the action page (for ex) "BOB had an exciting camping trip"
    if bob and kickback is selected then the message on
    myactionpage.cfm will say in text" bob Kickback and stayed home"
    can this be done.
    if so how
    here is what my example:
    <html>
    <head>
    <title>My sample Page</title>
    </head>
    <body>
    <form name="myform" action="
    http://www.myactionpage.com/
    " method="POST">
    <div align="center"><br>
    <input type="radio" name="group1" value="bob">
    bob<br>
    <input type="radio" name="group1" value="ken" checked>
    ken<br>
    <input type="radio" name="group1" value="Carol"> Carol
    <hr>
    <input type="radio" name="group2" value="camping">
    camping<br>
    <input type="radio" name="group2" value=" riverrafting
    "> riverrafting<br>
    <input type="radio" name="group2" value="kickback"
    checked> kickback<br>
    </div>
    </form>
    </body>
    </html>
    <form name="myform" action=
    http://www.myactionpage.com
    method="POST">
    <div align="center">
    <br><input type="submit"
    value="combinationofradiobuttons!"><br>
    </div>
    </form>
    </body>
    </html>

  • Hidden, Visible and back to Hidden using a radio button

    Ok this might be really simple for someone to answer.
    I have a radio button I'm using to toggle between two list boxes with multiple lines of text (hidden and then visible). Here's the problem, when I toggle the radio button back and forth I have both list boxes displaying thier notes at the same time. I would like to have the radio button display one messages at a time when you toggle between them. Here is my script.
    Radio Button named Violation:
    form1.#pageSet[0].Page1.#subform[0].action[1].Violation::click - (JavaScript, client)
    if (this.rawValue == null) {
         Notes.presence = "hidden";
    else {
         Notes.presence = "visible";
    Radio Button named Suspension:
    form1.#pageSet[0].Page1.#subform[0].action[1].Suspension::click - (JavaScript, client)
    if (this.rawValue == null) {
         Notes2.presence = "hidden";
    else {
         Notes2.presence = "visible";

    Notes and Notes2 are list boxes. Violation and Suspension are radio buttons. Is that correct? If so, are Violation and Suspension in an exclusion group?
    Is this the requirement, Violation should display Notes and hide Notes2 and Suspension should hide Notes and display Notes2?
    Steve

  • How to realize Checkbox and Radio Buttons based on Attributes in JHeadstart

    Hy@ all,
    I try to redevelop the Summit Forms Demo in ADF.
    The module "ORDER" contains, among other things, a checkbox and radio buttons based on database columns(VARCHAR2).
    The column(checkbox) named PAYMENT_TYPE contains the values CASH and CREDIT and the column(radio button) called ORDER_FILLED contains the values Y and N.
    After creating the business components, I set in JHeadstarts Application Definition the Display Type of these two attributes to checkBox and radio-horizontal.
    I created a dymanic domain for the radio-horizontal and a static domain for the checkBox.
    The radio-horizontal within the dymanic domain works nearly correct.
    I set the Data Collection in this dynamic domain to the required Group and the Value and Meaning Attribute to the necessary Attribute.
    Within the JSF- Page the values are shown right but unfortunately there are too many radio buttons available. Instead of displaying the two radio buttons CASH and CREDIT were many CASH and CREDIT radio buttons shown.
    I can´t find any solution for this case.
    The problem with the checkBox is that therfore a static domain is required but I want to show the value of the checkBox based on the described attribute, like the handling of the radio horizontal.
    But I don´t know how to implement this, if it is possible.
    I´m using JHeadstart v10.1.3.2 and I´m pleased about any reply or solution.
    Best regards
    Chris

    Chris,
    If you run the application module tester, and query the view object usage underlying your dynamic domain, how many rows does it return? It should return only two rows, one for CASH and one for CREDIT. If more than two rows are returned, your query is wrong.
    What is the problem with using a static domain for the checkbox?
    Steven Davelaar,
    JHeadstart Team.

  • Radio button and selection screen

    hi
    my requirement is that if the user enters some particular combination of value in the select options and clicks a particular radio button there should be an error message displayed.
    1)  I am getting the error message in the form a dialog box , but it has only option of  exit , and the user is thrown of the screen. my requirement is that after the error message the user must still be at the same screen so that he can enter new values.
    2)  the code that i have written also has one more anamoly that the displaying of error depends upon the sequence of  actions .
      if  i enter the value in the select option first and then click the radio button then the error message is displayed which is correct.
    but it doesnt work i click the radio button first and then enter the value, the program is executed and NO ERROR message is flashed.
    here is what i have written
    SELECTION-SCREEN BEGIN OF BLOCK blk WITH FRAME.
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE  text-001.
    SELECT-OPTIONS: p_year  for  s021-spmon obligatory ,
                    p_kunag  FOR vbrk-kunag  ,
                    p_matnr  FOR vbrp-matnr  ,
                    p_augru  FOR vbrp-augru_auft modif id a1 ,
                    p_vbeln  FOR vbrk-vbeln  .
    SELECTION-SCREEN END OF BLOCK blk1.
    SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE  text-002.
    PARAMETERS:  nrw RADIOBUTTON GROUP g1 user-command check,
                 mwd RADIOBUTTON GROUP g1 ,
                 rws RADIOBUTTON GROUP g1 ,
              edu RADIOBUTTON GROUP g1 ,
             standard RADIOBUTTON GROUP g1 default 'X' .
    SELECTION-SCREEN END OF BLOCK blk2.
    SELECTION-SCREEN END OF BLOCK blk.
    at selection-screen output.
       loop at screen.
       if nrw = 'X' and p_augru-low EQ 'MWD'.
           MESSAGE e000(oo) WITH '<Please Enter the correct Order Reason>'.
    endif.
       endloop.
    START-OF-SELECTION.
    CASE 'X'.
    WHEN nrw.
    PERFORM set_dates_nrw.
          PERFORM load_data_nrw.
          PERFORM get_cust_info_nrw.
          PERFORM set_alv_field_cat_nrw.
          PERFORM display_alv_nrw.
    endcase.

    Hi
    Change this piece of code
    at selection-screen output.
    loop at screen.
    if nrw = 'X' and p_augru-low EQ 'MWD'.
    MESSAGE e000(oo) WITH '<Please Enter the correct Order Reason>'.
    endif.
    endloop.
    by
    <b>at selection-screen.
    if nrw = 'X' and p_augru-low EQ 'MWD'.
    MESSAGE e000(oo) WITH '<Please Enter the correct Order Reason>'.
    endif.</b>
    Reward points if useful.
    Regards,
    Atish

  • Radio button and group

    Hi All,
    Not quite follow what dev guide says about radio button and group implementation.
    I tried but always got strange behavior.
    I have a subtab with two radio buttons (rbt1 and rbt2)
    rbt1 property defined as:
    Initial Value: Y
    Checked Value: Y
    Unchecked Value: N
    rbt2 property defined as:
    Initial Value: Y
    Checked Value: N
    Unchecked Value: Y
    Also, In my subtab PR, I init these two bts as a group:
    OAMessageRadioButtonBean colButton1 =
    (OAMessageRadioButtonBean)webBean.findChildRecursive("rbt1");
    colButton1.setName("colGroup");
    colButton1.setSelectedValue("Y");
    OAMessageRadioButtonBean colButton2 =
    (OAMessageRadioButtonBean)webBean.findChildRecursive("rbt2");
    colButton2.setName("colGroup");
    colButton2.setSelectedValue("N");
    When the subtab render first time, rbt1 is checked and rbt2 is unchecked as expected. but when I go to other subtab then come back, the rbt1 is unchecked and rbt2 is checked (switch automatically).
    The subtab PR is the only place I set this radio button value and group as showing above. Somewhere wrong with my logic or setting?
    Regards,
    KJ

    Hi All,
    Got issue resolved. When I was replying Ranjit previous post, I mentioned both of buttons bind to same VO attribute. Since the first rbt1 has defined checked and unchecked values (Y & N) and both of buttons are defined in same group, so I took off second rbt2 attribute binding then it works (won't switch automatically anymore).
    I still defined init values for both of buttons and also removed setSelectedValue() method calls from PR.
    Thanks again for the great helping.
    KJ

  • Problem with Radio Button using JDeveloper 10.1.2 and Windows 2008

    When adding Radio Buttons ("Yes and "No") to a swing application and putting them under a button group. Selecting "Yes" the "No" choice diappears

    JDev 10.1.2 is quite old, and was never certified for Windows 2008.
    No need to post multiple threads - same question as {thread:id=2271522}

  • How to increment array that contains two clusters whose visibility is controlled by a visible property node and selected by a radio button.

    I am trying to use a property node: visible in order to enable or disable one of two clusters. These clusters are in a larger cluster and this larger cluster is in an array. The two clusters are controlled by a radio button (one labeled transistor and the other diode). When diode is selected, the corresponding diode parameters cluster should be visible and when transistor is selected, the corresponding transistor parameters cluster should be visible. In the mean time, the cluster of the device that is not selected should not be visible. There are at least 45 elements in the array (but not more than 45). Data is entered into each cluster (diode or transistor data) for each element in the array via the increment/decrement. The problem is when you select the first radio button (transistor) and enter data, when you increment the array for a new device selection, since a visible property node was used on the cluster, a loop is created where a new cluster is trying to be shown, but the old cluster is also trying to be shown (because it is the one referenced by the property node. How do I get rid of this loop and still be able to increment the array and keep my data intact for future use? Attached is the vi
    Attachments:
    ChooseScan.vi ‏17 KB

    You could try something like this.  However, if you know how to use an xcontrol, that would be a better way to implement the above functionality so that these UI characteristics are not a part of your main VI.  The problem with the above VI is that you're looping every 100 ms just to update your UI.
    Also, try using the "disabled" property node, instead of the "visible" one.  That way, the user will still see the options he has but they will be grayed out.
    Message Edited by Sudhir Gopinath on 06-25-2007 04:45 PM
    S G
    Certified LabVIEW Architect, Certified TestStand Developer, Certified Professional Instructor
    Attachments:
    ChooseScan_1.vi ‏19 KB

  • Need Help on JSP Radio Buttons please

    How do i create radio buttons on a HTML file to link to other JSPs??
    do i have statements in my HTML that gets a JSP i.e option and then that runs the links to the other pages?
    please help very stuck and confused. Thanks

    Hi ..kinda new to java and jsp , worked with abit ...
    I have a problem have to solve. I have 2 jsp pages..one is for header displays a picture at top and has four radio buttons choices. Then at bottom of window is other jsp this jsp displays the result of whatever is choosen fromt he four buttons at top in the other frame from 1st jsp.
    I kinda have part of answer from your post about onclick. But how do i pass a value from the 1st jsp to the 2nd. jsp. There is some code in the second page that displays certian pages depending on what the value is from the four radio buttons.
    any help much appreciated :)

  • Popup window when radio button clicked

    Hello,
    I have a button that has a URL redirect of:
    javascript:popUp2('f?p=&APP_ID.:8:&SESSION.::NO:::', 400, 400);
    This opens a separate window.
    Now I want this to happen when the user clicks on a radio button on that page.
    Thank you,
    Matt

    You dont have to put this in html head..
    ON THE PAGE RENDERING SECTION..
    UNDER ITEMS... FIND THE RADIO BUTTON ITEM AND CLICK ON THAT..
    U WILL SEE DIFFERENT TAB OVER THERE... LIKE .. SHOW ALL , NAME , DISPLAYED , LABEL , ELEMENT ... ETC..
    SELECT ELEMENT..
    UNDER ELEMENT YOU WILL SEE
    HTML FORM ELEMENTS ATTRIBUTES... IN THAT TEXT BOX U JUST HAVE TO COPY AND PASTE THE ABOVE CODE

Maybe you are looking for

  • Exception while deploying a faces application in JBoss

    Hi All, I have made a sample faces application and deploying it in jboss-5.0.0.GA. I am getting the following exception while deploying : +11:22:55,897 ERROR [[jsfapplication]] Exception sending context initialized event to listener instance of class

  • Podcasts No Longer Sync to iPod

    Greetings! I've several video podcasts I'm subscribed to that no longer sync to the iPod no matter what I do. It seems to have started at the last OS update, but I'm not sure. I can drag and drop the things onto the iPod in iTunes and the sync settin

  • Using Virus Software ????

    Hello: I am using ClamXav, it has been running now for about 15 hours. How long should it take to complete a scan of the internal HD?? I ran it about a month ago and it actually uncovered a Trojan Horse, but I stopped it before it finished. Thanks.

  • Firewire 1394a cable to connect to thunderbolt

    I have the thunderbolt to firewire adapter for my MacBook Pro Retina but I don't know what cable to cable part number to buy to connect my older HD/Printer/Scaanners that all use the Firewire 1394 - 6 pin connector cables. I'd like to buy the correct

  • Send to FCP always needs a render

    Hi, I'm working with some ProRes 422 (HQ) footage in Color and I click the add all button and begin the render, when I select send back to FCP it says not all your clips are rendered even though all my clips have completed next to them in the render