Skip to content

Commit ba3bd8a

Browse files
committedFeb 13, 2025
feat: changed documenteditor/config/editorconfig/Customization#submitForm type boolean or SubmitForm
1 parent 5021053 commit ba3bd8a

File tree

3 files changed

+66
-4
lines changed

3 files changed

+66
-4
lines changed
 

‎CHANGELOG.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@
55
- documenteditor/config/editorconfig/Customization#pointerMode
66
- documenteditor/config/editorconfig/Customization#slidePlayerBackground
77
- documenteditor/config/editorconfig/Customization#wordHeadingsColor
8-
- deprecated documenteditor/config/editorconfig/Customization#mobileForceView
98
- support hwp, hwpx, pages, numbers, key formats
109
- sq-AL empty file templates
1110

11+
## Changed
12+
- documenteditor/config/editorconfig/Customization#submitForm type boolean or SubmitForm
13+
- deprecated documenteditor/config/editorconfig/Customization#mobileForceView
14+
1215
## 1.3.0
1316
## Added
1417
- documenteditor/config/editorconfig/customization/Logo#imageLight

‎src/main/java/com/onlyoffice/model/documenteditor/config/editorconfig/Customization.java

+6-3
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,13 @@ public class Customization {
260260
private Boolean spellcheck;
261261

262262
/**
263-
* Defines if the Submit button is displayed or hidden on the top toolbar. Button will only be available for the pdf
264-
* format. The default value is false.
263+
* Starting from version 8.3, defines the Complete & Submit button settings. If this parameter is a boolean
264+
* value, then it specifies whether the Complete & Submit button will be displayed or hidden on the top toolbar.
265+
* Button will only be available for the pdf format. The default value is true.
266+
*
267+
* @see com.onlyoffice.model.documenteditor.config.editorconfig.customization.SubmitForm
265268
*/
266-
private Boolean submitForm;
269+
private Object submitForm;
267270

268271
/**
269272
* Defines if the document title is visible on the top toolbar ("false") or hidden ("true").
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/**
2+
*
3+
* (c) Copyright Ascensio System SIA 2025
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*
17+
*/
18+
19+
package com.onlyoffice.model.documenteditor.config.editorconfig.customization;
20+
21+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
22+
import com.fasterxml.jackson.annotation.JsonInclude;
23+
import lombok.AllArgsConstructor;
24+
import lombok.Builder;
25+
import lombok.Getter;
26+
import lombok.NoArgsConstructor;
27+
import lombok.Setter;
28+
29+
30+
/**
31+
* Starting from version 8.3, defines the Complete & Submit button settings. If this parameter is a boolean value,
32+
* then it specifies whether the Complete & Submit button will be displayed or hidden on the top toolbar.
33+
* Button will only be available for the pdf format. The default value is true.
34+
*/
35+
@Getter
36+
@Setter
37+
@Builder
38+
@AllArgsConstructor
39+
@NoArgsConstructor
40+
@JsonInclude(JsonInclude.Include.NON_ABSENT)
41+
@JsonIgnoreProperties(ignoreUnknown = true)
42+
public class SubmitForm {
43+
/**
44+
* Defines whether the Complete & Submit button will be displayed or hidden on the top toolbar.
45+
* Button will only be available for the pdf format. The default value is true.
46+
*/
47+
private Boolean visible;
48+
49+
/**
50+
* Defines a message displayed after forms are submitted. The following values are available:
51+
* "" - the message will not be displayed;
52+
* null / undefined - the default message will be displayed;
53+
* "text" - any text that the user specifies will be displayed.
54+
*/
55+
private String resultMessage;
56+
}

0 commit comments

Comments
 (0)
Please sign in to comment.