Attribute | Required | Values | Default Value | Explanation |
---|---|---|---|---|
max | No | Any integer (whole number) | 255 | The maximum number of photos that can be attached to this field. If max is set to 1, then the multi-item review interface is disabled and the user can only ever visit the single-item review interface to review their capture. |
review | No | true, false | true | Whether or not to allow the user to review the photo they have just made. If set to false, the user will be taken straight to the next field when they make a capture. |
discardImg | No | A relative path to an image file | n/a | Path to a custom image to use on the “discard media” button (default is a trash can icon). |
approveImg | No | A relative path to an image file | n/a | Path to a custom image to use on the “approve media” button (default is a tick icon). |
useFrontCamera | No | true, false | false | Whether or not to use the device’s front-facing camera (if it exists). |
captureImg | No | A relative path to an image file | n/a | Path to a file containing the custom image to be used for the “take photo” button (default is a camera icon). |
flash | No | on, always, true, auto, off, never, false | auto | Which setting to use for the camera’s flash (if it exists — note that most phones do not have flashes on their front-facing cameras). |