• JMap.Form.updateDisplayedFormPhoto

    Updates a photo to the currently displayed form.

    Parameters

    Returns void

    Throws

    if invalid params passed, or if title AND comments are not or empty string

    Example

    if (JMap.Form.hasDisplayedForm() && JMap.Form.hasDisplayedFormAPhotoField()) {
    const photos = getDisplayedFormPhotos()
    if (photos.length > 0) {
    JMap.Form.updateDisplayedFormPhoto({
    photoId: photos[0].id,
    title: "My new title !",
    comment: "My new comment"
    })
    ...
    }
    }