Name of a function in CustomScript, that gets called when user click on the action button.
// Button config: { "CommandFunction": "btnSendIsdsMessageCommand", ... }
async function btnSendIsdsMessageCommand() {
const saved = await tisa.form.save();
if (saved) {
const itemId = tisa.context.pageContext.listItem.id;
await tisa.workflow.start("SendIsdsMessage");
tisa.log.info(`Item with ID=${itemId} was saved and workflow started, closing the form...`);
tisa.form.close();
} else {
tisa.log.info("The form cannot be saved at this time. Please fill in all required fields and resolve any validation errors.");
}
}
OptionalEnabledName of a function in CustomScript, that determines if the action button is enabled or not.
Action button is enabled if parameter is undefined.
Icon of the action button.
Unique identifier of the action button.
Display name of the action button.
OptionalToolText that gets shown when user hovers over the action button.
OptionalVisibleName of a function in CustomScript, that determines if the action button is visible or not.
Action button is visible if parameter is undefined.
Example: