Camera

This control starts the mobile camera to take a picture. For desktop browsers you will be able to upload a picture.

Special properties

  • Checkbox 'Add to attachements' - This will automatically add the Picture to the attachements of the current record

Api Functions

Events

Example usage for onPictureTaken

app.printBlob(app.getFieldValue("controlId"));

Add picture to image control

app.setFieldValue(
  "controlId image control",
  app.getFieldValue("controlId camera control")
);

Add picture to attachements

app.uploadAttachement(
  app.getFieldValue("controlId"),
  documentTypeId(optional),
  filename(optional)
);

Last updated