TreeINFO-For-M365 documentation
    Preparing search index...

    Module Form/CustomScript/Utils/AddDialog

    Function for adding dialog.

    const config = {
    Title: "Dialog Title",
    Template: [
    { InternalName: "name", Title: "Name", Type: "Text" }
    ]
    };

    const { button, data } = await tisa.utils.addDialog(config, async (button, data) => {
    return true; // true = close dialog, false = keep open
    });
    console.log(button, data);
    const config = {
    Title: "Dialog Title",
    Template: [
    { InternalName: "name", Title: "Name", Type: "Text" }
    ],
    Buttons: [
    { Title: "Send", Name: "send", Type: "submit" },
    { Title: "Send with Attachments", Name: "sendWithAttachments", Type: "submit" },
    { Title: "Close", Name: "close", Type: "button" }
    ]
    };

    const { button, data } = await tisa.utils.addDialog(config, async (button, data) => {
    return true; // true = close dialog, false = keep open
    });
    console.log(button, data);

    Interfaces

    DialogButton
    DialogConfig
    DialogFormField
    DialogResult

    Type Aliases

    AddDialogType
    OnDialogButtonClicked
    TypeAsString

    Functions

    addDialog