ebs.saveEditForm

IMPORTANT!  
This function is deprecated. If possible, use formData.saveAsync instead.

Saves a form displayed in a specific HTML element.

Syntax

Copy
function ebs.saveEditForm(htmlId: string, callback: Function): boolean;
 
Parameter Type Description
htmlId string ID of the form's HTML element.
callback Function Callback function to run on the returned output.

The output returned for the callback function includes information such as the ID of the saved record or if the save was successful, for example:

Copy
{
    ClientScript: null,​
    ErrorCode: 0,​
    Id: "ff41b9bf-1506-42b4-a518-1121b9d0250a"​,
    IsSuccess: true​,
    Message: "Record updated"​,
    Serialized: "{\"Id\":\"ff41b9bf-1506-42b4-a518-1121b9d0250a\",\"Message\":\"Record updated\",\"IsSuccess...,
    UIResult: null
}

Return Value

Returns True if the save was successful or False otherwise.

Examples