0 Replies Latest reply: Jul 16, 2012 10:53 AM by userCold9 RSS

    Drop list not display value from selection after error message

    userCold9 Community Member

      I have a screen where a drop down list is automatically populated when a selection is made from another drop down list.

       

      Below is the use of the cfselect.
      <cfselect name="SubPrograms" bind="cfc:new.common.CertPrograms.getCertsSub()" bindOnLoad="true" selected="#Getcerts.CertSubProgram#"  default="0"/>
      <cfselect name="Programs" bind="cfc:new.common.CertPrograms.getCertsPrograms({SubPrograms})" selected="#Getcerts.Program_Approval#" bindOnLoad="true" default="0"/>
      <cfdiv bind="url:certprogramselected.cfm?myProgramApproval={Programs}" bindonload="yes"></cfdiv>
      <cfdiv bind="url:certprogramselected.cfm?mySubProgramApproval={SubPrograms}" bindonload="yes"></cfdiv>
          
      When a selection is made in both drop down lists and a check box value on the screen is selected, an error screen appears stating the value selected in the check box is not correct.

       

      Then the browser back button is selected. The previous screen appears. But the values in the drop down list reverted to the values orginally displayed and not the values selected.

       

      It looks like with the cfselect, it is obtaining the value from the database with the latest value for the drop down list.

       

      Is there any way of having the values in the drop down lists show the value that was selected when the browser back button was selected?

       

       

      Mike