-
- Adding Fields
- Adding and Editing Linked List items using Inline, Dialog & Sintel Forms Embedded
- Linked Lists-How to add attachments
- Linked Libraries-Using a Document/Picture Library
- Sections - Tab order
- Using a Linked List
- Field and Section Validation
- Creating Calculated Fields & using formulas
- Default values & custom values
- Setting field properties within a Linked List
- About Layout
-
- Import a form template
- Configure Printing Options
- Lookup Columns: Retrieve additional columns from Lookup List
- Use Sintel Embedded Mode on a linked list
- Automatically add linked items or files
- Lookup Columns: Control the sort order
- Share a Form
- Configure a cascading drop-down
- Change the layout of Choice Fields
- Make Attachments Mandatory
- Set & clear field values using rules
- Create a custom form header
- Export a form template
- Transferring your license to another tenant
- Debugging your forms
-
- Workflow emails not being received by distribution lists or mail-enabled security groups
- Changing the Content Approval settings of a list can cause an issue with Sintel Forms
- Site naming and Sintel Forms
- Workflow emails not being received by SharePoint group members
- Ad blockers and Privacy Extensions
- "500 internal server error" on form opening
- Attachments option missing in Sintel Forms
- "401 Unauthorized" error during form data save
- Sintel Forms doesn't appear to be applied to a list
- Handling the list view threshold for the Workflow and Conversations features
- No actions appearing in the actions menu
- Enabling third-party cookies
- Sintel Forms Save Process
- The remote server returned an error: (401) Unauthorized when importing a form template
- Activating Sintel Forms on newly created tenants
After save script
Created On
Last Updated On
byPiotr Jasek
0 out Of 5 Stars
5 Stars | 0% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |
< All Topics
Enable after save script – enables executing a custom js script right after an item has been saved.
It is possible to execute a custom script right after a form item has been saved. This allows you to set custom values of form fields with the possibility to use all the server-defined values as well (e.g. the ID field, which is not available before a new item gets saved into SharePoint).
Example
The example below will show you how to prepare a custom script which will update the “TextField” field of an item with a value that will combine two other field values: “ID” and “Date”.
let date = getDateTime("Date", "ddMMyy") let id = getValue("ID"); setValue("TextField", id + "_" + date);
When the ‘Date’ field will be empty the error will occur, however, the form will be saved (only the ‘TextField’ value won’t be changed).
List of available API functions to use in after save script:
Function | Description |
getValue(fieldName) | Returns the value of a field. |
getDateTime(fieldName,format) | Returns the value of a date/datetime field in the provided format. For a list of possible formats, see here. |
setValue(fieldName,value) | Sets the value of a field. |
Was this article helpful?
0 out Of 5 Stars
5 Stars | 0% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |
Table of Contents