VERSEBLOCKS
Cartographer
Advisory
Docs
Reference
Cert Guides
Blog
Contact
Get Started
JAVASCRIPT API
Client-Side JavaScript API
Searchable quick reference for Model-Driven App form scripting.
All
Get & Set Values
Form Controls & Visibility
Notifications & Dialogs
Xrm.WebApi (CRUD from Scripts)
Navigation & Forms
Context & Utility
Business Process Flows
39 results
Get & Set Values
(8)
Get a field value
Set a field value
Get a lookup value
Set a lookup value
Get a choice (option set) value
Set a choice (option set) value
Get and set a date field
Trigger OnChange programmatically
Form Controls & Visibility
(7)
Show / hide a field
Enable / disable a field
Set field requirement level
Change a field label
Show / hide a tab
Show / hide a section
Pre-filter a lookup (addPreSearch)
Notifications & Dialogs
(4)
Set / clear a field-level notification
Set / clear a form-level notification
Show a confirmation dialog
Show an alert dialog
Xrm.WebApi (CRUD from Scripts)
(5)
Create a record
Retrieve a record
Retrieve multiple records
Update a record
Delete a record
Navigation & Forms
(6)
Open a record form
Open a new record form with defaults
Open a web resource dialog
Open a URL
Get form type (Create vs Update)
Save and close the form
Context & Utility
(6)
Get the current record ID
Get the current entity name
Get current user info
Get the org URL
Check if the form has unsaved changes
Get formContext from event handler
Business Process Flows
(3)
Get the active stage
Move to next / previous stage
Show / hide the BPF control