@model QuestionnaireViewModel @{ ViewData["Title"] = "Delete Questionnaire"; var totalAnswers = Model.Questions?.Sum(q => q.Answers?.Count ?? 0) ?? 0; var otherCount = Model.Questions?.Count(q => q.Answers != null && q.Answers.Any(a => a.IsOtherOption)) ?? 0; var qCount = Model.Questions?.Count ?? 0; }

Delete Questionnaire

Back to List

This action is permanent and cannot be undone

  • All questions will be permanently deleted
  • All answers will be removed
  • Survey responses will be lost forever
  • Associated analytics will be erased

Questionnaire Details

ID
#@Model.Id
Title
@Model.Title
Description
@if (!string.IsNullOrEmpty(Model.Description)) {
@Html.Raw(Model.Description)
} else {
No description provided
}
@qCount
Questions
@totalAnswers
Total Answers
@otherCount
Other Options

Ready to delete this questionnaire?

This will permanently remove all @qCount questions and @totalAnswers answers

Cancel
@section Scripts { }