params which identify the elements
if layer not found, if form not found, or form is not an attribute form
// returns elements form data for layer id=3, form id=2, and elements id=245,236
JMap.Form
.getElements({
layerId: 3,
formId: 2,
elementIds: [245, 236]
})
.then(elements => console.log("Elements:", elements))
.catch(error => console.error("An error occurred when getting elements data", error))
JMap.Form.getElements
Returns form data of multiple elements from given parameters.
Works only for attribute forms.