Skip to content

Commit

Permalink
updated survey-library docs [azurepipelines skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kurmanov committed Dec 30, 2024
1 parent 73d5ba1 commit a837642
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
19 changes: 3 additions & 16 deletions docs/design-survey-conditional-logic.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ The following built-in functions are available:
- [`day`](#day)
- [`weekday`](#weekday)
- [`getDate`](#getdate)
- [`diffDays`](#diffdays)
- [`dateAdd`](#dateadd)
- [`dateDiff`](#datediff)
- [`sum`](#sum)
- [`max`](#max)
- [`min`](#min)
Expand Down Expand Up @@ -469,7 +470,7 @@ Returns a Date value converted from a given question's value.
*Definition*: `dateAdd(date: any, numberToAdd: number, interval: "days" | "months" | "years"): Date`
Adds a specified number of full days (default), months, or years to a date value.
Adds or subtracts a specified number of full days (default), months, or years to or from a date value.
*Example*: `"expression": "dateAdd({startDate}, 14, "days")"`
Expand All @@ -489,20 +490,6 @@ Returns a difference between two given dates in full days (default), months, or
---
#### `diffDays`
> This function is obsolete. Use the [`dateDiff`](#datediff) function instead.
*Definition*: `diffDays(fromDate: any, toDate: any): number`
Returns the number of days between two given dates.
*Example*: `"expression": "diffDays({startDate}, {endDate}) < 7"`
[View Source Code](https://github.com/surveyjs/survey-library/blob/68eb0054dc83d2f45a6daa1042bf7440c8faf007/src/functionsfactory.ts#L266-L274 (linkStyle))
---
#### `sum`
*Definition*: `sum(param1: number, param2: number, ...): number`
Expand Down
2 changes: 1 addition & 1 deletion docs/design-survey-create-a-multi-page-survey.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ Navigates the respondent to the next page. Returns `false` if the navigation did
- [`prevPage()`](https://surveyjs.io/Documentation/Library?id=surveymodel#prevPage)
Navigates the respondent to the previous page. Returns `false` if the navigation did not happen, for instance, because the current page is the first page. Unlike with `nextPage()`, validation errors are ignored.

- [`completeLastPage()`](https://surveyjs.io/Documentation/Library?id=surveymodel#completeLastPage)
- [`tryComplete()`](https://surveyjs.io/Documentation/Library?id=surveymodel#tryComplete)
Completes the survey. Fails and returns `false` if the current page has validation errors.

- [`doComplete()`](https://surveyjs.io/Documentation/Library?id=surveymodel#doComplete)
Expand Down

0 comments on commit a837642

Please sign in to comment.