diff --git a/src/settings.ts b/src/settings.ts index 3699df546e..4e48bcf217 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -546,6 +546,11 @@ export var settings = { notifications: { lifetime: 2000 }, + /** + * Specifies how many milliseconds a survey should wait before it automatically switches to the next page. Applies only when [auto-advance](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#goNextPageAutomatic) is enabled. + * + * Default value: 300 + */ autoAdvanceDelay: 300, /** * Specifies the direction in which to lay out Checkbox and Radiogroup items. This setting affects the resulting UI when items are arranged in [more than one column](https://surveyjs.io/form-library/documentation/api-reference/checkbox-question-model#colCount). diff --git a/src/survey.ts b/src/survey.ts index 0eaa063ac8..1a8ded6a78 100644 --- a/src/survey.ts +++ b/src/survey.ts @@ -1598,6 +1598,7 @@ export class SurveyModel extends SurveyElementCore * > If any of the following questions is answered last, the survey does not switch to the next page: Checkboxes, Yes/No (Boolean) (rendered as Checkbox), Long Text, Signature, Image Picker (with Multi Select), File Upload, Single-Select Matrix (not all rows are answered), Dynamic Matrix, Dynamic Panel. * * [View Demo](https://surveyjs.io/form-library/examples/automatically-move-to-next-page-if-answer-selected/ (linkStyle)) + * @see [`settings.autoAdvanceDelay`](https://surveyjs.io/form-library/documentation/api-reference/settings#autoAdvanceDelay) */ public get goNextPageAutomatic(): boolean | "autogonext" { return this.getPropertyValue("goNextPageAutomatic"); @@ -1609,6 +1610,7 @@ export class SurveyModel extends SurveyElementCore * Specifies whether to complete the survey automatically after a user answers all questions on the last page. Applies only if the [`goNextPageAutomatic`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#goNextPageAutomatic) property is `true`. * * Default value: `true` + * @see [`settings.autoAdvanceDelay`](https://surveyjs.io/form-library/documentation/api-reference/settings#autoAdvanceDelay) */ public get allowCompleteSurveyAutomatic(): boolean { return this.getPropertyValue("allowCompleteSurveyAutomatic", true);