Skip to content

Commit

Permalink
Describe settings.autoAdvanceDelay
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanTsukanov committed Oct 16, 2023
1 parent 8555f01 commit 57bde72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 2 additions & 0 deletions src/survey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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);
Expand Down

0 comments on commit 57bde72

Please sign in to comment.