the photo to delete
if invalid id passed, or photo not found
if (JMap.Form.hasDisplayedForm() && JMap.Form.hasDisplayedFormAPhotoField()) {
const photos = getDisplayedFormPhotos()
if (photos.length > 0) {
JMap.Form.removeDisplayedFormPhotoById(photos[0].id)
}
}
JMap.Form.removeDisplayedFormPhotoById
Deletes a photo on the currently displayed form, for a given photo id.