From 63f5d9fce207c10de71bbd045acf55073b85170e Mon Sep 17 00:00:00 2001
From: Toastie <toastie@toastiet0ast.com>
Date: Tue, 4 Feb 2025 19:32:41 +1300
Subject: [PATCH] Add more template validation

---
 Interviews/Interview.cs | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Interviews/Interview.cs b/Interviews/Interview.cs
index 815dd8a..1edc539 100644
--- a/Interviews/Interview.cs
+++ b/Interviews/Interview.cs
@@ -322,7 +322,11 @@ public class InterviewStep
             }
         }
 
-        // TODO: Warning for answer-delimiter if there is no summary-field
+        if (answerDelimiter != null && string.IsNullOrWhiteSpace(summaryField))
+        {
+            warnings.Add("An answer-delimiter has no effect without a summary-field.\n\n> " + stepID + ".answer-delimiter");
+        }
+
         // TODO: Add url button here when implemented
         if (messageType is MessageType.REFERENCE_END)
         {