fix: (BACKPORT) required CTA question (#7023)

This commit is contained in:
Dhruwang Jariwala
2025-12-22 14:15:53 +05:30
committed by GitHub
parent 5b308d10dc
commit 7260a1a3a4
@@ -173,7 +173,8 @@ export function BlockConditional({
}
// For other element types, check if required fields are empty
if (element.required && isEmptyResponse(response)) {
// CTA elements should not block navigation even if marked required (as they are informational)
if (element.type !== TSurveyElementTypeEnum.CTA && element.required && isEmptyResponse(response)) {
form.requestSubmit();
return false;
}