Image
This field is used to capture a live image or upload an existing image.
{"type": "image","id": "image","label": "Image","showInTable": true,"isRequired": true,"captureLocation": true,"sizeLimitMb": 5}
In the above example, the field takes an input of an image of maximum size 5 MegaBytes and has a feature called captureLocation which records the location of the picture. When captureLocation is true, the user has to capture a live image and upload it.
Field Attributes
Name | Type | Description |
---|---|---|
id | string | Assigns a name for the given field on the backend. This name can be used to refer this field in another field |
label | string | Adds a label to the given field |
captureLocation | boolean | Captures the live location of the user |
isRequired | boolean | Makes a field mandatory |
showInTable | boolean | Displays the field in a table after saving the entry |
sizeLimitMb | number | Limits the size of the uploaded file |