-
Notifications
You must be signed in to change notification settings - Fork 26
MobileCRM.UI.HomeForm.requestObject
rescocrm edited this page May 15, 2023
·
9 revisions
[v8.0] Requests the managed HomeForm object.
Method initiates an asynchronous request which either ends with calling the errorCallback or with calling the callback with Javascript version of HomeForm object. See MobileCRM.Bridge.requestObject for further details.
Argument | Type | Description |
---|---|---|
callback | function(homeForm) | The callback function that is called asynchronously with serialized HomeForm object as argument. Callback should return true to apply changed properties. |
errorCallback | function(errorMsg) | The errorCallback which is called in case of error. |
scope | Object | The scope for callbacks. |
This example demonstrates how to change the Home Form title.
function changeTitle(newTitle) {
MobileCRM.UI.HomeForm.requestObject(function (homeForm) {
/// <param name="homeForm" type="MobileCRM.UI.HomeForm"/>
homeForm.form.caption = "My Changed Caption";
return true;
}, MobileCRM.bridge.alert);
}