0 Replies Latest reply on Jul 1, 2010 9:28 AM by avilela

    CFselect onchange doesn't work on flash Form

    avilela

      Hello :

      I have looked for more than a week to find out answer  but couldn't fine anything.

       

      I have cform with tye="Flash" and cfselect with query to populate the values.

      I want use onchange="" after I select any value on cfselect to submit the pages and select next cfselect. But doesn't work.

      Some help me

       

      When I used onchange="submitform();" the form doesn't display.

      I used geturl() and page reload but doesn't submit the page.

       

      I use this code that i found on Adobe web page and still doesn't work.

       

      <cfsavecontent variable="
      showSelectedCheckbox">
      var checkboxCount = 3;
      for(var i = 1; i <= checkboxCount; i++)
      {
           var thisItem = 'check' + i;
           if(i == itemSelect.value)
           {
                this[thisName].enabled = true;
           }
           else
           {
                this[thisName].enabled = false;
           }
      }
      </cfsavecontent>
      
      <cfform format="flash" width="300" height="500">
      
           <cfinput name="check1" type="checkbox" 
                label="Feed?" enabled="true" />
           <cfinput name="check2" type="checkbox" 
                label="Mine?" enabled="false"/>
           <cfinput name="check3" type="checkbox" 
                label="Eat?" enabled="false"/>
      
           <cfselect name="itemSelect" label="Select Item"
                onchange="#showSelectedCheckbox#">
                <option value="1">Animal</option>
                <option value="2">Mineral</option>
                <option value="3">Vegetable</option>
           </cfselect>
      
      </cfform>

       

      I read about cffromitem or cfformgroup but i don't know how used it .

       

      Somebody Can help me to result this problem.