You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -179,7 +180,7 @@ You can't modify the original fields of a doctype, so create a new field or clon
179
180
| :--- | :--- |
180
181
|**dialog_title**| Upload dialog title to be displayed ️(🔶Frappe >= v14.0.0).<br /><br />🔹Example: **"Upload Images"**<br />🔹Default: **"Upload"**|
181
182
|**upload_notes**| Upload text to be displayed.<br /><br />🔹Example: **"Only images and videos, with maximum size of 2MB, are allowed to be uploaded"**<br />🔹Default: **""**|
182
-
|**disable_auto_save**🔴 | Disable form auto save after upload.<br /><br />🔹Default: **false**|
183
+
|**disable_auto_save**| Disable form auto save after upload.<br /><br />🔹Default: **false**|
183
184
|**disable_file_browser**| Disable file browser uploads.<br /><br />⚠️ *(File browser is always disabled in Web Form)*<br /><br />🔹Default: **false**|
184
185
|**allow_multiple**| Allow multiple uploads.<br /><br />⚠️ *(Field value is a JSON array of files url)*<br /><br />🔹Default: **false**|
185
186
|**max_file_size**| Maximum file size (in bytes) that is allowed to be uploaded.<br /><br />🔹Example: **2048** for **2KB**<br />🔹Default: **Value of maximum file size in Frappe's settings**|
@@ -190,17 +191,23 @@ You can't modify the original fields of a doctype, so create a new field or clon
190
191
|**allowed_filename**| Only allow files that match a specific file name to be uploaded.<br /><br />🔹Example: (String)**"picture.png"** or (RegExp String)**"/picture\-([0-9]+)\.png/"**<br />🔹Default: **null**|
191
192
|**allow_reload**| Allow reloading attachments (🔶Frappe >= v13.0.0).<br /><br />🔶 Affect the visibility of the reload button.🔶<br /><br />🔹Default: **true**|
192
193
|**allow_remove**| Allow removing and clearing attachments.<br /><br />🔶 Affect the visibility of the remove and clear buttons.🔶<br /><br />🔹Default: **true**|
194
+
|**users** 🔴 | Array of custom options for a specific user or group of users.<br /><br />🔹Example: **[{"for": "Guest", "disabled": true}, {"for": ["Administrator", "user"], "allow_multiple": true}]**<br />🔹Default: **null**|
195
+
|**roles** 🔴 | Array of custom options for a specific role or group of roles.<br />⚠️ *(Custom options for users is prioritized over roles.)*<br /><br />🔹Example: **[{"for": ["Administrator", "System"], "allow_multiple": true}]**<br />🔹Default: **null**|
196
+
197
+
🔴 New - 🔶 Changed
193
198
194
199
---
195
200
196
201
### Available JavaScript Methods
197
202
| Method | Description |
198
203
| :--- | :--- |
199
-
|**auto_save(enable: Boolean)**| Enable/Disable form auto save after upload. |
204
+
|**toggle_auto_save(enable: Boolean !Optional)** 🔶| Enable/Disable form auto save after upload. |
200
205
|**toggle_reload(allow: Boolean !Optional)**| Allow/Deny reloading attachments and toggle the reload button (🔶Frappe >= v13.0.0). |
201
206
|**toggle_remove(allow: Boolean !Optional)**| Allow/Deny removing and clearing attachments and toggle the clear and remove buttons. |
202
207
|**set_options(options: JSON Object)**| Set or change the plugin options. |
0 commit comments