Add more template validation

This commit is contained in:
Toastie 2025-02-04 19:32:41 +13:00
parent af319b18b7
commit 63f5d9fce2
Signed by: toastie_t0ast
GPG key ID: 0861BE54AD481DC7

View file

@ -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)
{