-
Notifications
You must be signed in to change notification settings - Fork 24
MobileCRM.UI._DetailView.removeItem
rescocrm edited this page May 15, 2023
·
9 revisions
[v8.0] Removes the item from this detailed view.
| Argument | Type | Description |
|---|---|---|
| index | Number | An index of the item which has to be removed. |
This example demonstrates how to remove the detail item from the detail view by its name.
function removeItem(itemName) {
MobileCRM.UI.EntityForm.requestObject(function (entityForm) {
var detailView = entityForm.getDetailView("General");
var items = detailView.items;
for (var i in items) {
if (items[i].name == itemName) {
detailView.removeItem(i);
return;
}
}
}, MobileCRM.bridge.alert);
}