Skip to content

Commit

Permalink
Merge pull request #8681 from surveyjs/validateVisitedEmptyFields-des…
Browse files Browse the repository at this point in the history
…cription

Describe `validateVisitedEmptyFIelds`
  • Loading branch information
andrewtelnov authored Aug 13, 2024
2 parents baa81e9 + 1eb8e65 commit 60831fc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/survey-core/src/survey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1725,6 +1725,21 @@ export class SurveyModel extends SurveyElementCore
public set checkErrorsMode(val: string) {
this.setPropertyValue("checkErrorsMode", val);
}
/**
* Specifies whether to trigger validation when a user focuses on an empty input field and then leaves it without making any changes. Applies only if [`checkErrorsMode`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#checkErrorsMode) is set to `"onValueChanged"`.
*
* Default value: `false`
*
* This property changes validation behavior for the following question types:
*
* - [Single-Line Input](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model)
* - [Long Text](https://surveyjs.io/form-library/documentation/api-reference/comment-field-model)
* - [Dropdown](https://surveyjs.io/form-library/documentation/api-reference/dropdown-menu-model)
* @see validationEnabled
* @see validationAllowSwitchPages
* @see validationAllowComplete
* @see validate
*/
public get validateVisitedEmptyFields(): boolean {
return this.getPropertyValue("validateVisitedEmptyFields");
}
Expand Down

0 comments on commit 60831fc

Please sign in to comment.