mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-05 21:31:03 -05:00
fix: (BACKPORT) required CTA question (#7023)
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user