-
- 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
Set & clear field values using rules
Created On
Last Updated On
bySławomir Bryk
0 out Of 5 Stars
5 Stars | 0% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |
You are here:
- Main
- How To Guides
- Set & clear field values using rules
< All Topics
The setValue function within our JavaScript API allows you to set or clear any value on a form field. This function can be used within Steps that you can add to Rules on the Logic section of the Sintel Forms Designer
Below you will find code snippets for setting and clearing a field value for different field types.
User (both single and multi select)
Set it…
let user ={displayName: "Joe Bloggs", id: "joebloggs@example.com"}
setValue("InternalFieldName",[user]);
Clear it…
setValue("InternalFieldName", [])
Lookup (single)
Set it…
setValue("InternalFieldName",ID of the lookup item)
Clear it…
setValue("InternalFieldName", [])
Lookup (multi)
setValue("FieldName", [])
Date (with and without the time part)
setValue("FieldName", null)
Choice (single)
setValue("FieldName", null)
Choice (multi)
setValue("FieldName", [])
URL/image
setValue("FieldName", null)
setValue("Url", {description: "Test", url: "https://www.test.com"})
Currency/number
setValue("FieldName", "")
Text
setValue("FieldName", "")
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