Skip to main content
Feb 23, 2011 9:40 PM UTC
Question

cfselect and preservedata

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 is closed to new replies. Start a new post to keep the conversation going.

    1 reply

    BKBK
    Community Expert
    Community Expert
    Feb 24, 2011 5:56 AM UTC

    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.

    Translate