Skip to content

Commit

Permalink
Merge pull request 'Updates for the submitForm parameter' from featur…
Browse files Browse the repository at this point in the history
…e/submitForm-updates into feature/editor-8.3.0

Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/api.onlyoffice.com/pulls/99
  • Loading branch information
LinneyS committed Dec 18, 2024
2 parents 9ef0548 + 02112ce commit 8a864eb
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Change Log

- docs api: the editorConfig.customization.submitForm parameter can now be used as an object
- docs api: the editorConfig.customization.compactToolbar parameter is now available for the viewer
- docs api: added the editorConfig.customization.pointerMode parameter
- docs api: updated the WOPI section
Expand Down
Binary file added site/assets/images/editor/submitForm-message.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ The list of changes of ONLYOFFICE Docs API.

## Version 8.3

- The [editorConfig.customization.submitForm](../../Usage%20API/Config/Editor/Customization/index.md#submitform) parameter can now be used as an object.
- The [editorConfig.customization.compactToolbar](../../Usage%20API/Config/Editor/Customization/index.md#compacttoolbar) parameter is now available for the viewer.

- Added the [editorConfig.customization.pointerMode](../../Usage%20API/Config/Editor/Customization/index.md#pointermode) parameter.

## Version 8.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,10 @@ const config = {
trackChanges: true,
hoverMode: false,
},
submitForm: true,
submitForm: {
visible: true,
resultMessage: "text",
},
toolbarHideFileName: false,
uiTheme: "theme-dark",
unit: "cm",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1306,13 +1306,34 @@ Example: true

## submitForm

Defines if the **Complete & Submit** button is displayed or hidden on the top toolbar. Button will only be available for the *pdf* format. The default value is **false**.
Starting from version 8.3, defines the **Complete & Submit** button settings. If this parameter is a boolean value, then it specifies whether the **Complete & Submit** button will be displayed or hidden on the top toolbar. Button will only be available for the *pdf* format. The default value is **true**.

Type: boolean
Type: object or boolean

Example: true

![Submit button](/assets/images/editor/submitForm.png)
![Submit button](/assets/images/editor/submitForm-message.png)

### submitForm.visible

Defines whether the **Complete & Submit** button will be displayed or hidden on the top toolbar. Button will only be available for the *pdf* format. The default value is **true**.

Type: boolean

Example: true

### submitForm.resultMessage

Defines a message displayed after forms are submitted. The following values are available:

- **""** - the message will not be displayed;
- **null / undefined** - the default message will be displayed;
- **"text"** - any text that the user specifies will be displayed.

Type: string

Example: "text"

## toolbar

Expand Down Expand Up @@ -1531,7 +1552,10 @@ const docEditor = new DocsAPI.DocEditor("placeholder", {
trackChanges: true,
hoverMode: false,
},
submitForm: true,
submitForm: {
visible: true,
resultMessage: "text",
},
toolbarHideFileName: false,
uiTheme: "theme-dark",
unit: "cm",
Expand Down

0 comments on commit 8a864eb

Please sign in to comment.