ReadonlyfieldReadonlygroupProvides access to form groups.
ReadonlyisGets a value indicating whether the form does not allow to edit the item.
ReadonlyisGets a value indicating whether the form is currently editable.
The isEditableForm property is true when either isNewForm or isEditForm is true.
const { form } = tisa;
const { myField1, myField2, myField3 } = tisa.form.field;
if (form.isEditableForm) {
// set read-only property for some fields
myField1.readOnly = true;
myField2.readOnly = false;
// set required property for some fields
myField2.required = true;
// set value for some fields
myField3.value = "test";
}
ReadonlyisGets a value indicating whether the form allows to edit the item.
ReadonlyisGets a value indicating whether the item does not yet exist and the form allows to fill in its metadata.
ReadonlyisTrue if the form displays a task to complete.
ReadonlyprintProvides print template functionality for the current form.
Closes the form.
Saves the form data.
By default the form stays open after saving (redirect is false).
On a new form, saving without redirect creates the item in SharePoint and automatically
switches the form to edit mode — subsequent operations (e.g. starting a workflow) can
reference the newly created item.
Returns true if the form was valid and saved successfully, false if validation failed.
Use the return value to conditionally continue after save (e.g. start a workflow).
true if the form was saved, false if validation failed.
// Save and close the form
await tisa.form.save({ redirect: true });
// Code here will not execute — the form has already been closed.
Sets the active form definition by name. The name must match one of the CustomFormDefinitions defined in the form JSON config.
Can only be called during onFormInit. Throws if called after init or if the name is not found.
Name of the custom form definition to activate.
Provides access to form fields.