params needed to delete entries
if layer not found, if form not found, or form is not an attribute form, or invalid parameter
// returns delete result
JMap.Form
.deleteDatabaseFormEntries({
layerId: 3,
formId: 4,
elements: [{
id: 3,
parentId: 3,
elementId: 3,
attributeValueByName: {
name: "bee",
type: "nest"
},
parentAttributeValueByName: {
jmap_id: 3,
color: "red",
type: "tree"
}
}]
})
.then(result => console.log("Deleted entries result:", result))
.catch(error => console.error("An error occurred while deleting entries", error))
JMap.Form.deleteDatabaseFormEntries
Deletes entries of an attribute form.
Works only for attribute form.