fix: allow CTA elements to proceed when marked required (#7293) [Backport to release/4.7] (#7297)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Dhruwang Jariwala
2026-02-19 13:57:27 +05:30
committed by GitHub
parent 5b776b04b1
commit 3b6b804a68

View File

@@ -137,6 +137,11 @@ const checkRequiredField = (
return null;
}
// CTA elements never block progression (informational only)
if (element.type === TSurveyElementTypeEnum.CTA) {
return null;
}
if (element.type === TSurveyElementTypeEnum.Ranking) {
return validateRequiredRanking(value, t);
}