Checkbox or Radio Group - Valid Message

Is there any code for or any way to get a valid checkbox or
radio button to have a valid message to work properly in a form for
validation
thanks

What? Are you getting errors? Can we see your code?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"jnutella101" <[email protected]> wrote in
message
news:gljijs$r89$[email protected]..
> Is there any code for or any way to get a valid checkbox
or radio button
> to have a valid message to work properly in a form for
validation
>
> thanks

Similar Messages

  • Read-only radio group losing value on validation error

    It took quite a while to track this down, but I think I've got it narrowed down properly. I have an APEX form for updating a record in a databse table with a radio group which is conditionally read-only. If that radio group has a value AND is read-only, when the form is submitted and hits a validation error, the value of the radio group is lost.
    For example, the radio group SUBMITTED_FOR_APPROVAL is set to Y and is read-only for a given user. That user then changes something else on the form and submits it. However, the form now hits a validation error for some field. When the form reloads with the validation error displayed, all the fields are restored except the read-only radio group which is now blank. If a select list is used with the identical read-only condition, it works fine. Likewise, if a radio group is used, but the read-only condition is removed, it works fine. It is only when it is a radio group and it is read-only, that the value does not appear to be submitted to the session with all the form values whent he form is submitted.
    Is this a bug or am I simply missing something?
    Apex 3.1.2
    Rgds/Mark M.

    It's using a shared component LOV cleverly called LOV_YN which consists of a static LOV with
    1 Display=Yes, Return=Y
    2 Display=No, Return=N
    The settings in the LOV section on the item iteself:
    Named LOV: LOV_YN
    Display Extra values: No Dynamic translation: Not translated
    Number of columns: 2 Display null: No
    Null display value is blank as is null return value
    Item was setup as a radio group and was only converted over to a select list to work around this issue. Let me know what else you need and thanks again.
    Rgds/Mark M.

  • PHP Form Validation and Radio Group

    Hi David,
    I'm trying to set the initial state of a radio group to none.
    Please look at the file http://ecopethandbags.com/contact.php. The initial state is set to "No"
    In Dreamweaver, I've set the initial state to "Unchecked"
    I don't understand the code for the radio buttons in my file (see attachment).
    What I am trying to do is to have the radio group initially unchecked but required.
    I have 2 questions:
    1) - How can I control the initial status of the radio group when I use the PHP form validation?
    2) - How can I set the validation so, when one of the radio buttons is not checked by the user, a warning flag like "Please make a choice" comes up.
    Thank you much!

    Just change the following section of code:
    <?php
    if (!$_POST || isset($missing) && $_POST['subscribe'] == 'n') {
      echo 'checked="checked"';
    } ?>
    Remove the !$_POST || like this:
    <?php
    if (isset($missing) && $_POST['subscribe'] == 'n') {
      echo 'checked="checked"';
    } ?>
    The checked="checked" will be inserted into the code only if the form has been submitted, but neither radio button has been selected.

  • Trouble validating a radio group

    So I created a form with some text fields and a text area. I
    highlighted the submit button and then went to add a behavior to
    "validate form". I was able to make the text fields I wanted
    required.
    Later I had to go back and add a radio group. However, when i
    try to add the radio group as required, I do not see it listed on
    the validate form behavior. Even if I delete the existing validate
    form behavior and create a new one, I do not see the radio group
    listed amongst the text fields so I can't make it required.
    How come my radio group is not listed? How can I make it
    required on the form? Thanks.

    DW validation does not validate radio buttons. Try yaromats
    free extension - it works well.

  • Read Only Display of Radio group and Text area with counter not working

    Hello,
    I am using Apex 3.2, with 10g for the database
    I have this form, with fields that will set to read only when status = 'closed'
    All of the fields display as read only except for 2. I cannot figure out why this is not working correctly.
    1st field is Issues that is a text area with character counter, with a sql query behind it, that is set to null unless the query is pulling in the data.
    2nd field is Status which is a radio group that will not display as read only when status = 'closed'
    I have other fields on the form with the same format and they change to read only when the status = 'closed', I have even copied the pl/sql expression from one field to these fields and it still doesn't work correctly. I have also tried javascript for an on load event, which works, but once I click on the save button, it disables all of the page items, which works correctly, but I purposely forget to enter information, to make sure the validations are firing correctly, which it does, but the script disables everything, not allowing me to correct the errors. The javascript is firing on the on page load event.
    Any help on this is greatly appreciated.
    Mary

    Dung,
    That API seems to have a bug, it returns true/false/null, so you could use 'return not nvl(htmldb_util.current_user_in_group(p_group_name => 'APP Admin'),false)' to get a false value.
    Unfortunately there's another problem: using the read-only attributes for checkbox or radiogroup item makes them hidden. My suggestion would be to create another item that has disabled="disabled" in the HTML Form Element attribute in the item definition and display that item or the non-disabled item alternately, using conditions based on the current_user_in_group logic.
    Scott

  • I can't get formMail.php to recognize my simple Spry Radio Group button

    I don't know php at all, but I have a dreamweaver form that sends its information to a document called "formmail.php" and that sends the email to me.
    I was able to add text fields by duplicating the text field code in the formmail.php file and it does work, BUT i don't know what code should be on the file to process the radio button information. The radio button group is made up of 2 buttons "Yes" and "No"
    This is a abbreviated version of "formmail.php"
    <body>
    <?php
      $name=addslashes($_POST['name']);
      $address=addslashes($_POST['address']);
      $email=addslashes($_POST['email']);
      $radioGroup1=addslashes($_POST['arrangements']);
      $comments=addslashes($_POST['message']);
    // you can specify which email you want your contact form to be emailed to here
      $toemail = "[email protected]";
      $subject = "From the VFS website";
      $headers = "MIME-Version: 1.0\n"
                ."From: \"".$name."\" <".$email.">\n"
                ."Content-type: text/html; charset=iso-8859-1\n";
      $body = "Name: ".$name."<br>\n"
                ."Address: ".$address."<br>\n"
    ."Email: ".$email."<br>\n"
    ."Have you made pre-arrangements?: ".$radioGroup1."<br>\n"
                ."Comments:<br>\n"
                .$comments;
      if (!ereg("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $email))
        echo "That is not a valid email address.  Please return to the"
               ." previous page and try again.";
        exit;
        mail($toemail, $subject, $body, $headers);
        echo "Thanks for submitting your comments";
    ?>
    </body>
    </html>
    And this is what the code for my Spry Radio Group button is looking like.
    <p id="arrangements"><span id="spryradio1">
                                          <label>
                                            <input type="radio" name="RadioGroup1" value="Yes" id="RadioGroup1_0">
                                            Yes  </label>
                                          <label>
                                            <input type="radio" name="RadioGroup1" value="No" id="RadioGroup1_1">
                                            No</label>
                                            <br>
                                          <br>
    </span></p>
    Please help - I'm lost!

    The post form method gets a variable, by name and sends that value to your processor.  You have called $_POST['attachments'] which is the name of the container <p> tag and not of the radio group.  So change:
    $radioGroup1=addslashes($_POST['arrangements']);
    to
    $radioGroup1=addslashes($_POST['RadioGroup1']);
    That changes the <p> arrangements to the RadioGroup1 which is the name you gave the radio group.

  • Displaying a radio group in SQL QUERY report region

    Good morning everyone,
    I have a report in which a column - ORDER STATUS, will come in with a value of 1, 2 or 3...being order unfilled, order partially filled, or order filled, respectively.
    I would like to display the order status as a radio group on the report so that it will be easy to run down the column of radio buttons to see what is filled, etc.
    I've gone to the manual and checked the doco on HTMLDB_ITEM.RADIOGROUP. But the example given there is actually for CHECKBOX (is this an error?!?).
    I went to the forums and found nothing suitable.
    My region is an SQL QUERY. Can I display the STATUS as a radio group in the SELECT ?
    This is the question.
    Thankyou in anticipation. TC. 23/11/2004

    Tony,
    There may be better solutions, but here's what I was thinking:    create table orders (id number, status number, customer varchar(30))
        insert into orders (id,status,customer) values(1,1,'ACME')
        insert into orders (id,status,customer) values(2,2,'BENSON')
        insert into orders (id,status,customer) values(3,3,'CLARKE')
        commit
        Query Source
        select
          id "ORDER NUMBER",
          decode(status,
            1,htmldb_item.RADIOGROUP(1,status,'1','unfilled')||htmldb_item.RADIOGROUP(2,status,'2','partial','"disabled=true"')||htmldb_item.RADIOGROUP(3,status,'3','filled','"disabled=true"'),
            2,htmldb_item.RADIOGROUP(1,status,'1','unfilled','"disabled=true"')||htmldb_item.RADIOGROUP(2,status,'2','partial')||htmldb_item.RADIOGROUP(3,status,'3','filled','"disabled=true"'),
            3,htmldb_item.RADIOGROUP(1,status,'1','unfilled','"disabled=true"')||htmldb_item.RADIOGROUP(2,status,'2','partial','"disabled=true"')||htmldb_item.RADIOGROUP(3,status,'3','filled'))
          "STATUS",
          customer "Customer Name"
        from orders;Scott

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

  • FRM - 40212 / FRM - 40222 error on a radio group during query

    Hi all,
    This is my first post so please bear with me if I haven't provided sufficient information or am unclear at all.
    I'm using Forms Builder (Web) on a 10g Database. I have a number of database and non-database items as part of a data block.
    My problem is that, when I enter a value in any field and click the query button, I get a FRM-40212 Invalid value for field error on my radio group (disabled, non-database item that is programatically populated in the post-query and list-changed triggers only). When I click ok, I get a FRM-40222 Disabled Item Failed Validation error on the same radio group.
    This does not happen if I click the 'Enter Query' button before entering values into fields, however I don't want my users to encounter this error if they try to query without clicking on 'Enter Query' first.
    I'd like to know why exactly does this error happen - what does it mean?
    I've read in other forums that setting the item's Required property to false solves this issue. But how can I do this with a radio group? And if it's not possible, does anyone have any suggestions for other workarounds?
    Thanks in advance,
    Abigail

    Hi,
    You can avoid this by setting 'Mapping of other values' to the one fo the radio buttons value.Like if you have to radio button radio1 and radio2 associated with radio group R1 ,then set any radio buttons initial value to this 'Mapping of other values' property of radio button R1.You won't see this error.
    This error occurs because your loading a screen without assigning a value to the radio button.
    If this helps mark question as answered or helpfull.
    Thanks,
    Pavan.

  • Radio Group With Submit.

    Apex 3.2
    I have an updateable report based on a collection.
    One of the columns is a radio group and is the only updateable column
    My code for the column is currently
    apex_item.radiogroup(7,seq_id,c008)
    I also have a button that fires an update process.
    Ideally, I would like to get rid of the button and fire the update, after the user has changed the radio group.
    So I changed my code to
    apex_item.radiogroup(
                  7
                , seq_id
                , c008
                , null
                , null
                , null
                , 'doSubmit(''SUBMIT'')'
                , null
                , null
                , null)
    If I click on a different radio group nothing happens.
    If I then click on another one, the update fires, but with the value of the previous radio.
    Do I need to add something else to
    'doSubmit(''SUBMIT'')'
    Thanks
    Gus

    Submitting a page or navigating to another page is not an appropriate action to take on clicking a radio button checkbox:
    Setting or clearing a checkbox changes the checkbox's state with no other side-effects. Violating this guideline by associating additional actions with the change of state frequently confuses users, because they are used to configuring data in entry controls such as text boxes, radio buttons, and check boxes and then invoking an action control such as a push button to initiate the action to process the data.
    Use radio buttons to select items or options before initiating a submit using an appropriate control. Use  buttons and links to submit and navigate to other pages. This enables users to consider their choice and change it before submission.

  • Simplifyin​g Large Amount of Checkboxes or Radio Buttons

    Hey everyone,
    I am having an issue with handling a problem. I think part of is that I don't know how to approach the problem. Let me explain the problem and my idea for the solution(you'll see why it's difficult or tedious)
    Problem: Our software records 145 channels. Sometimes we use all of these channels, but more often than not, we use a fraction of this. Due to the complexity of the acquisition code, which was written outside of the lab, we have decided to handle this issue by post processing data. We want to see a list of the channels, and select which ones we want to remove.
    My solution: Create a front panel with all of the channels name(dynamic) and a checkbox or radio button next to each one. I have gotten the names, but the only way I can see to handle the check boxes is to make 145 of them, which means I'll have 145 controls in my block diagram and that can be a bit of a cluster(pun intended). I couldn't find anything that LabVIEW had built in or anything on the forums. I may have been looking for the wrong thing. I would appreciate any guidance or solutions.
    If I just need to put my big boy pants on and deal with the high amount of controls, I will. I have always been under the impression that if it code looks too ugly, you're probably doing it wrong.
    Thanks,
    Seth

    It also depends if all these channels can be splitted into logical groups. In this case you can bundle them in clusters.
    In the attached picture there is a cluster containing 16 smaller clusters. Note that in the actual application there is 2 other tabs with similar cluster of clusters. These 3 major clusters where also bundled into a master Signal Select cluster (this was developped in LV2009 so the cluster constant took an awful lot of block diagram space, I welcomed the cluster constat icon feature introduced in LV2010!).
    In the lower right you can see how this unbundled.
    Ben64
    Attachments:
    Lot of checkboxes GUI.png ‏64 KB

  • Variable in the validation message

    Dear all,
    I have defined a new validation method with the following settings in the SEM-BCS:
    Type of the data stream: totals records
    Validation type: data rows and totaled
    Then I have defined a new validation rule and a new message. For example:
    Validation rule:
    VAL_YTD u201E&1u201D ( u201CAu201D items ) = 0
    Message:
    u201CAu201D items (&1) donu2019t equal 0.
    I use the group function with item.
    My question:
    How can I set up that in the message text that the system writes out the number of item in the message?
    For example
    u201C112u201D item (56 EURO) donu2019t equal 0.
    Regards
    Zsolt

    Hi Zsolt,
    I have struggled with this in the past and found the help document useful but I think it is not possible to list the incorrect Item (as suggested above by Collet).
    NB If you have BCS 6.02 or greater, then you already have the new "jump to" functionality that can take users directly to the List of Totals records to display the incorrect data record - this provides some help for users and infact may be better because they would probably go to the Totals List after a validation message anyway.
    NB It doesn't need any configuration, only installation of 6.02 (that is BCS 6, EHP2) or greater, plus (if you haven't already) activation of the EHP2 group close function in T-Code SFW5. Then the functionality will exist in your validation log screen after running the validation task.

  • Cross column radio group solution using dynamically generated HTML

    I am tasked with creating a screen in Apex matching look and feel of an existing application screen; tabular form, multiple column radio buttons to update a single column value (radio group needs to be row oriented, across multiple columns). I could not find a way to use HTMLDB_ITEM.RADIO_GROUP () function for this due to the radio group being column based, great as a row selector but not for use across columns (each button being a column).
    My first thought was to comprise and use checkboxes via HTMLDB_ITEM.CHECKBOX () for the multiple choices (in each column) and HTMLDB_ITEM.HIDDEN() to hold the chosen value, a JavaScript function for “onClick” event to make the checkboxes in one row act like radio buttons in a radio group. I created a simple application to show the concepts of my solutions …
    SQL looks like this:
    select pk_id, -- f01
    object_to_color, -- f02
    HTMLDB_ITEM.CHECKBOX(11, color_choice,
    'onClick="chkboxAction('||pk_id||', document.wwv_flow.f11, ''RED'')"', 'RED') red,
    HTMLDB_ITEM.CHECKBOX(12, color_choice,
    'onClick="chkboxAction('||pk_id||', document.wwv_flow.f12, ''BLUE'')"', 'BLUE') blue,
    HTMLDB_ITEM.CHECKBOX(13, color_choice,
    'onClick="chkboxAction('||pk_id||', document.wwv_flow.f13, ''GREEN'')"', 'GREEN') green,
    color_choice -- f03
    from objects_to_color
    Columns pk_id and color_choice are set as Show off and Display As Hidden. Note that my HTMLDB_ITEM.CHECKBOX items start with id number 11 (f11 – f13) so as not to conflict with the item id’s Apex will generate on it’s own. I could have used HTMLDB_ITEM functions to create all items and had my own PL/Sql update process.
    This creates a tabular presentation with a column for each color choice as a checkbox, shown checked if that color is initially set.
    The JavaScript function chkboxAction() clears the other checkboxes if a color is selected and stores the color in the hidden item db column for use in Apex Submit processing. Sorry the identation get's lost in the post!
    function chkboxAction (id, ckbx, color) {
    // f01 is pk_id (hidden)
    // f11 is RED checkbox
    // f12 is BLUE checkbox
    // f13 is GREEN checkbox
    // f03 db column color_choice for update (hidden)
    var idx;
    // Find row index using pk_id passed in as id argument.
    for (var i=0; i < document.wwv_flow.f01.length; i++) {
    if (document.wwv_flow.f01.value == id) {
    idx = i;
    i = document.wwv_flow.f01.length;
    if (ckbx(idx).checked == true) {
    // Set hidden color_choice column value to be used in update.
    document.wwv_flow.f03(idx).value = color;
    // Uncheck them all, then reset the one chosen.
    document.wwv_flow.f11(idx).checked = false;
    document.wwv_flow.f12(idx).checked = false;
    document.wwv_flow.f13(idx).checked = false;
    ckbx(idx).checked = true;
    } else {
    // Unchecked so clear color_choice column value to be used in update.
    document.wwv_flow.f03(idx).value = '';
    This works well and, as an aside, has an added feature that the color can be “unchosen” by unchecking a checked checkbox and leaving all checkboxes unchecked. This cannot be done with radio buttons unless a radio button is added as “no color”.
    But what if radio buttons must be used, as in my situation? Here is another solution using custom code to dynamically generate radio buttons for a row based radio group rather than using HTMLDB_ITEM.RADIO_GROUP ().
    select pk_id, -- f01
    object_to_color, -- f02
    '<input type="radio" name="rb'||pk_id||'" id="rb'||pk_id||'_1" value="RED" '||
    decode(color_choice, 'RED', 'CHECKED', '')||
    ' onClick="rbAction('||pk_id||', ''RED'')">' red,
    '<input type="radio" name="rb'||pk_id||'" id="rb'||pk_id||'_2" value="BLUE" '||
    decode(color_choice, 'BLUE', 'CHECKED', '')||
    ' onClick="rbAction('||pk_id||', ''BLUE'')">' blue,
    '<input type="radio" name="rb'||pk_id||'" id="rb'||pk_id||'_3" value="GREEN" '||
    decode(color_choice, 'GREEN', 'CHECKED', '')||
    ' onClick="rbAction('||pk_id||', ''GREEN'')">' green,
    color_choice -- f03
    from objects_to_color
    The pk_id column is used here to ensure a unique name and unique id for the items. In practice a custom api should be used to generate items in this way.
    The JavaScript function is actually simpler for radio buttons because the radio group handles the mutually exclusive logic for choosing a color.
    function rbAction (id, color) {
    // f01 is pk_id (hidden)
    // f03 db column color_choice for update (hidden)
    var idx;
    // Find row index using evaluation_question_id.
    for (var i=0; i < document.wwv_flow.f01.length; i++) {
    if (document.wwv_flow.f01.value == id) {
    idx = i;
    i = document.wwv_flow.f01.length;
    // Set hidden result column referenced in update.
    document.wwv_flow.f03(idx).value = color;
    Now the problem is that on update, Apex will be confused by the custom items and try to post updated values to it’s own internal items – which don’t exist. The result is the very frustrating HTTP 404 - File not found error when apex/wwv_flow.accept executes on Submit. So, the trick is to clear the custom items prior to the update with a simple JavaScript function, then the values show again when the page is rerendered, if you are not branching from the page. The Submit button is changed to call the following function:
    function submit () {
    var items = document.getElementsByTagName("INPUT");
    for (i=0; i< items.length; i++) {
    if (items(i).type == "radio") {
    if (items(i).checked == true)
    items(i).checked = false;
    doSubmit('SUBMIT');
    This technique might have general use when using custom items. Comments or improvements on this?
    See Oracle Apex site: workspace SISK01, app OBJECTS_TO_COLOR

    Just the code for formatting.
    Checkboxes to behave like radio group ...
    SQL ...
    select pk_id,              -- f01
           object_to_color,    -- f02
              HTMLDB_ITEM.CHECKBOX(11, color_choice,
                  'onClick="chkboxAction('||pk_id||', document.wwv_flow.f11, ''RED'')"', 'RED') red,
              HTMLDB_ITEM.CHECKBOX(12, color_choice,
                  'onClick="chkboxAction('||pk_id||', document.wwv_flow.f12, ''BLUE'')"', 'BLUE') blue,
              HTMLDB_ITEM.CHECKBOX(13, color_choice,
                  'onClick="chkboxAction('||pk_id||', document.wwv_flow.f13, ''GREEN'')"', 'GREEN') green,
           color_choice  -- f03
    from objects_to_colorJavaScript ...
    function chkboxAction (id, ckbx, color) {
        // f01 is pk_id (hidden)
        // f11 is RED checkbox
        // f12 is BLUE checkbox
        // f13 is GREEN checkbox
        // f03 db column color_choice for update (hidden)
        var idx;
        // Find row index using pk_id passed in as id argument.
        for (var i=0; i < document.wwv_flow.f01.length; i++) {
           if (document.wwv_flow.f01(i).value == id) {
              idx = i;
              i = document.wwv_flow.f01.length;
        if (ckbx(idx).checked == true) {
          //  Set hidden color_choice column value to be used in update.
          document.wwv_flow.f03(idx).value = color;
          // Uncheck them all, then reset the one chosen.
          document.wwv_flow.f11(idx).checked = false;
          document.wwv_flow.f12(idx).checked = false;
          document.wwv_flow.f13(idx).checked = false;
          ckbx(idx).checked = true;
        } else {
          //  Unchecked so clear color_choice column value to be used in update.
          document.wwv_flow.f03(idx).value = '';
    }Radio button solution ...
    SQL ...
    select pk_id,              -- f01
           object_to_color,    -- f02
           '<input type="radio" name="rb'||pk_id||'" id="rb'||pk_id||'_1" value="RED" '||
                decode(color_choice, 'RED', 'CHECKED', '')||
                ' onClick="rbAction('||pk_id||', ''RED'')">' red,
           '<input type="radio" name="rb'||pk_id||'" id="rb'||pk_id||'_2" value="BLUE" '||
               decode(color_choice, 'BLUE', 'CHECKED', '')||
               ' onClick="rbAction('||pk_id||', ''BLUE'')">' blue,
           '<input type="radio" name="rb'||pk_id||'" id="rb'||pk_id||'_3" value="GREEN" '||
               decode(color_choice, 'GREEN', 'CHECKED', '')||
               ' onClick="rbAction('||pk_id||', ''GREEN'')">' green,
           color_choice  -- f03
    from objects_to_colorJavaScript ...
    function rbAction (id, color) {
        // f01 is pk_id (hidden)
        // f03 db column color_choice for update (hidden)
         var idx;
         // Find row index using evaluation_question_id.
        for (var i=0; i < document.wwv_flow.f01.length; i++) {
           if (document.wwv_flow.f01(i).value == id) {
              idx = i;
              i = document.wwv_flow.f01.length;
        //  Set hidden result column referenced in update.
        document.wwv_flow.f03(idx).value = color;
    function submit () {
      // Clears radio buttons to prevent Apex trying to post and causing page error.
      var items = document.getElementsByTagName("INPUT");
      for (i=0; i< items.length; i++) {
        if (items(i).type == "radio") {
          if (items(i).checked == true)
            items(i).checked = false;
      doSubmit('SUBMIT');
    }

  • Email multiple selected recipients / Radio Group?

    Hi all.
    I've recently come to basic grips with PHP and Forms. I would
    like to create something similar to a radio group, in which the
    user can select multiple email recipients and then click Send to
    relay a message to all, and only, the selected.
    Imagine a radio group numbered 1 through 10, each number
    represents a different email address - the user can select as many
    or as few as he likes and then press send to email the comment to
    those selected.
    Could I use Radio Groups to do this? or any other form of
    HTML Forms?
    In the long run the picture get's a little more complicated -
    but if I can solve this I'm half way there!
    Please help!
    Thanks! Nathan

    BTW, you also need a script to "Check All Boxes"
    http://www.somacon.com/p117.php
    "NJFuller" <[email protected]> wrote in
    message
    news:gmfm3d$k1f$[email protected]..
    > Hi all.
    >
    > I've recently come to basic grips with PHP and Forms. I
    would like to
    > create
    > something similar to a radio group, in which the user
    can select multiple
    > email
    > recipients and then click Send to relay a message to
    all, and only, the
    > selected.
    > Imagine a radio group numbered 1 through 10, each number
    represents a
    > different email address - the user can select as many or
    as few as he
    > likes and
    > then press send to email the comment to those selected.
    >
    > Could I use Radio Groups to do this? or any other form
    of HTML Forms?
    >
    > In the long run the picture get's a little more
    complicated - but if I can
    > solve this I'm half way there!
    >
    > Please help!
    > Thanks! Nathan
    >

  • Validation turned off - still getting a validation message

    CF9 (NOT CF901), no hotfixes, no updates, no patches.
    CFFORM with name and ID parameters, nothing else.
    Form contains two text fields (both are used for date in MM/DD/YYYY format),
         six checkboxes (all unique name/id), two radio (both same name/id), and a submit button.
    The text fields, checkboxes, and radio are all <INPUT>, the submit is <CFINPUT>.
    NONE of the names/ids contain underscore or hyphen or anything other than
         alpha characters (not even numbers.)
    Regardless of whether the "Start Date" is 1/1/2011 or 01/01/2011, when the submit
         button is clicked, an alert box will display "Invalid Start Date Format. Use MM/DD/YYYY",
         and the form will submit, anyway.
    There is not any JavaScript validation; there are no parameters or settings asking CF to validate.
    Has anyone else run across this "ghost" validation error?
    Thanks,
    ^_^

    The action and method have been added by another developer since I made my original post.
    Same for the CFSELECT.
    <cfform id="reportFilters" action="reportContent.cfm" method="post" >
    <table id="filter-selection">
    <tr>
    <td><input type="radio" name = "level" value="directReports"   checked/>
    Direct Reports</td>
    <td><input type="radio" name = "level" value="wholeOrg"  />
    Whole Organization</td>
    <td><input type="checkbox" id="management" name="management" checked="checked" />
    <label for="management">Management</label></td>
    <td><input type="checkbox" id="nonManagement" name="nonManagement" checked="checked" />
    <label for="nonManagement">Non-Management</label></td>
    <td>*These filters apply to all sections</td>
    </tr>
    </table>
    <h2> Report by Course</h2>
    <cfselect query="courses" name ="courseDropdown" display="course_title" queryPosition="below" >
    <option>Select Course</option>
    </cfselect>
    <h2>Report by Training Programs</h2>
    <cfselect query="trainPrograms" name ="tpDropdown" display="training_program_name" queryPosition="below">
    <option>Select Training Program</option>
    </cfselect>
    <h2>Custom Report Filters</h2>
    <table id="filter-selection">
    <tr>
    <td id="filter-include"><span class="title">include</span>
    <input type="checkbox" id="toggleNotEnrolled" name="toggleNotEnrolled" checked="checked"  />
    <label for="toggleNotEnrolled">Not Enrolled</label>
    <input type="checkbox" id="toggleEnrolled" name="toggleEnrolled" checked="checked" />
    <label for="toggleEnrolled">Enrolled</label>
    <input type="checkbox" id="toggleComplete" name="toggleComplete" checked="checked" />
    <label for="toggleComplete">Completed</label></td>
    <td id="filter-cal"><input value="#calStart#" type="text" id="calStartDt" name="calStartDt" size="10" />
    <img id="calstartimg" class="calendar-img" src="images/calendar.png" />
    <input value="#calEnd#" type="text" id="calEndDt" name="calEndDt" size="10" />
    <img id="calendimg" class="calendar-img" src="images/calendar.png" />
    <button type="submit" id="updatebtn"><img src="images/update_btn.png" /></button></td>
    </tr>
    </table>
    <!--- additional filtering options --->
    <div id="filter-options1">
    <table>
    <tr>
    <th colspan="2" class="edge">type of training</th>
    <th>delivery method</th>
    </tr>
    <tr>
    <td></td>
    <td></td>
    <td><input type="checkbox" id="toggleWBT" name="toggleWBT" checked="checked" />
    <label for="toggleWBT">WBT (Web-Based)</label></td>
    </tr>
    <tr>
    <td><input type="checkbox" id="toggleRequired" name="toggleRequired" checked="checked" />
    <label for="toggleRequired">Required IT</label></td>
    <td class="edge"><input type="checkbox" id="toggleOptional" name="toggleOptional" checked="checked" />
    <label for="toggleOptional">Optional</label></td>
    <td><input type="checkbox" id="toggleILT" name="toggleILT" checked="checked" />
    <label for="toggleIlT">ILT (Instructor-Led)</label></td>
    </tr>
    </table>
    </div>
    <cfinput type="submit" value="Export" name="submitButton" />
    </cfform>

Maybe you are looking for

  • Excel for mac keeps locking my documents and I can't access

    HELP!! All my Excel files are now marked as "read only" and won't open. I did not do this, and they come with a read only document, and I cannot figure out what to do. I have updated, restarted the macbook, powered off the macbook, etc, all to no ava

  • Problems in IDOC receiver communication channel

    Hi, I am trying to build an interface to get data from 3rd party legacy system using JDBC and post the data into ECC using IDOCS. I have IDOC built in ECC, I am able to import the metadata in IDX2 after creating port in IDX1. But after building the w

  • PDF and PowerPoint 2007, strange slides and handouts

    I'm getting strange output when I create a presentation in PowerPoint and print to Acrobat. The problems happen whether I print Slides or Handouts. -- On some slides, the slide title is partially or completely missing. -- In grayscale mode, some grap

  • EmployeeDetailsVO extension stops Show/Hide from working on EmployeeViewsPG

    Hi, I am on 12.0.6. I have just extended EmployeeDetailsVO to add an extra criteria to the where clause to stop records older than the 1-SEP-2008 from being displayed. It worked successfully and the rows returned on the page EmployeeViewsPG (Nav: Emp

  • Error using DI API on Item Revaluation

    Dear All While on Revaluation of Item using DI API System gives error meaasage as "Internal Error 5002" ans displaya 'Material Revaluation failed'. Can any one help me to find the reason for this error and how to overcome the situation? With regards