• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

10. Dynamic Form Controls > 10.8. Preserving Input

Preserving Input

In ColdFusion 5.0, a new attribute called preservedata was added to the cfform tag. Setting preservedata to Yes causes ColdFusion to retain and display data submitted from a cfinput, cftextinput, cfslider, or cftree control when a form is submitted to itself or to another page with like-named cfform controls. The exact effect of the preservedata attribute depends on the type of form control you use in your cfform. For cfinput and cftextinput controls, setting preservedata to Yes allows you to display the data entered by the user after the form has been submitted without any additional coding. For cfslider controls, the slider is set automatically to the position from the previous form post. For cftree controls, the tree expands automatically to the branch containing the previously selected item. For


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint