the subform id
the parent form elements
if no form dialog currently opened, or sub form not found, or no sub form table field in currently displayed form, or invalid parameters
// opens the form creation dialog for layer id=3
JMap.Form
.openCreationDialogForSubForm(
4,
[
id: 3,
attributeValueByName: {
jmap_id: 3,
color: "red",
type: "tree"
}
]
)
.then(formMetadata => console.log("Creation sub form dialog opened", formMetadata))
.catch(error => console.error(error))
JMap.Form.openCreationDialogForSubForm
Opens the sub form creation dialog.