Workflow Soluiton

 View Only
  • 1.  How to Uncheck Multiple Radio Buttons

    Posted Jun 24, 2011 01:02 PM
    Hello, I have a web form that has three radio buttons, some with three items and some with only one item. I need to clear out the values of radiobutton_1 if radiobutton_2 is clicked and vice versa and if radiobotton_3 is checked to clear out radiobuttons 1 and 2 , but I can’t see to get it to work with java or any other method. Can someone help? Here is an example: Radiobutton_1 • item1 • item2 • item3 Radiobutton_2 • item1 Radiobutton_3 • item_1 • item_2


  • 2.  RE: How to Uncheck Multiple Radio Buttons

    Posted Jun 24, 2011 02:21 PM
      |   view attached

    Ive attached a WebForms .package (renamed as a .zip) that shows what I'm doing (ignore any warning that says it was done in a later build). I've done it for the 3rd radio button set in the list... here's a series of steps:

    1. Give the radio buttons Control IDs (under Functionality/Behavior) of "rad1", "rad2, and "rad3"

    2. Add an AttributeKeyValuePair custom even to the third radio button "rad3". Make it an onclick event, and use the following script:

    var radio110 = document.getElementById("rad1_l_0");

    var radio111 = document.getElementById("rad1_l_1");

    var radio112 = document.getElementById("rad1_l_2");

    var radio210 = document.getElementById("rad2_l_0");

    radio110.checked = false;

    radio111.checked = false;

    radio112.checked = false;

    radio210.checked = false;

    And that should do it. You should be able to use the above to do the same for the first two radio buttons as well. Notice the radio button item elements have IDs that follow the format of <control ID>_<lower case L>_<0-based index of item>. Thus, your rad3 item elements would be rad3_l_0 and rad3_l_1.

    Hope this helps. If you have any questions, fell free to ask.

    Attachment(s)

    zip
    WebFormsProject1_1.zip   3.12 MB 1 version


  • 3.  RE: How to Uncheck Multiple Radio Buttons

    Posted Jun 24, 2011 04:03 PM

    I'll try this out, I also saw your explaination on another post and tried to download and rename the attached project, but it is not opening. I get a "This package doesnot contain a project" error when I try to open the project. 



  • 4.  RE: How to Uncheck Multiple Radio Buttons

    Posted Jun 25, 2011 12:59 PM

    Unsure what version of the product you're running, but try "unzipping" the .zip, and renaming the .SymWorkflow file to .WebForms... I believe we made this change in 7.1. If you're on a flavor of 7.0, you may have to do this.

    Either way, if you can't get my project to open, my explanation should guide you down the right path. let me know if you need any more information.