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

Recipe 5. Survey Builder > Administrator Recipe: Edit Survey

Administrator Recipe: Edit Survey

The Edit Survey page serves three main functions: to modify the survey information such as title and start/end dates; to provide an overview of associated questions and a link to modify them; and to take the survey offline, even when in the declared active timeframe. A parameter, passed from the link in Survey Manager, determines the proper survey record to use; our custom code redirects the user to the Survey Manager page if the parameter is missing, which is a far better solution than displaying an empty recordset. Because the Edit Survey page is also the conduit to modifying the survey’s questions, the URL parameter, if found, is put into a session variable and used to filter the survey recordset. In addition to the survey recordset, a second recordset for the questions is created for this page.

When the modifications to the survey record are complete, a standard Update Record server behavior stores the changes. In addition to updating the current survey record, the Edit Survey recipe describes how to delete a record. What makes this delete function different from others included in this book is that it also removes associated records—in this case, orphaned questions.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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