diff --git a/src/question.ts b/src/question.ts index b2692a00c6..ba6b73c043 100644 --- a/src/question.ts +++ b/src/question.ts @@ -1549,8 +1549,7 @@ export class Question extends SurveyElement if (this.isVisibleInSurvey) return false; if (!!this.page && this.page.isStartPage) return false; if (!this.survey) return true; - const valueName = this.valueName ?? this.name; - return !this.survey.hasVisibleQuestionByValueName(valueName); + return !this.survey.hasVisibleQuestionByValueName(this.getValueName()); } /** * Returns `true` if a parent element (page or panel) is visible.