Skip to main content
February 23, 2011
Question

cfselect and preservedata

  • February 23, 2011
  • 1 reply
  • 683 views

Have a cfform with preservedata=yes.  All of the cf inputs save their data between postbacks except for the cfselect.  I've tried replacing it with just an html <select> and it also doesn't preserve the selected item.  Do I have to 'manually' set selected on the selected item, or is there a trick to making preservedata work with the cfselect?

thanks

    This topic has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    February 24, 2011

    brambilaa wrote:

    Do I have to 'manually' set selected on the selected item, or is there a trick to making preservedata work with the cfselect?

    Yes. PreserveData works with the cfselect tag only in the case where the select-list is a query.