Add a Camera Widget

About this task

Use the Camera widget to launch the device camera and capture an image or video. It also allows the app user to choose an image from the device's gallery.

Procedure

  1. In the Canvas, open the Widgets tab.
  2. Double-click or drag and drop the Camera widget onto the app canvas.
  3. In the Camera Properties panel, enter a name for the widget in the Name field.
  4. Turn on the Required option if you want to force app users to configure this widget.
  5. Turn on Allow image editing to let app users make edits to the pictures they capture.
    When enabled, app users can rotate the image, crop it, or mark it up with text, markers, or highlighters.
  6. Turn on Allow caption to let app users to add a caption to the pictures they take. You can then set a character limit for the length of the caption. App users will be warned when they exceed the limit. If you want to make it mandatory to include a caption, turn on the Required option nested under Allow caption
  7. Choose how you want to align your widget in the app.
    • Align Left
    • Center
    • Align Right
  8. Under Camera Settings, set how many pictures an app user can save to the SOTI Snap app. Then, set the quality of the saved images.
  9. Optional: Add a requirement rule to the widget.
    Use requirement rules to specify whether the app user must configure this widget or can skip it.
    1. Select Requirement Rule to open the Set Requirement Rule dialog box.
    2. Select whether the requirement rule requires meeting all or any conditions.
    3. From the Field list, select an app field or variable and an operator. Enter the value required for the widget to be visible.
    4. Select Add Condition to add another condition.
    5. Select OK to save.
  10. Optional: Add a visibility rule to the widget.
    Use visibility rules to control when a widget is visible to the app user. For example, you can create a condition that a widget should only appear after the app user fills in a field or submits a form.
    1. Select Visibility Rule to open the Set Visibility Rule dialog box.
    2. Select whether the visibility rule requires meeting all or any conditions.
    3. Select an app field or variable and an operator from the Field list. Enter the value required for the widget to be visible.
    4. Select Add Condition to add another condition.
    5. Select Save.
  11. Move to the Format tab to customize the widget's appearance.
  12. Select Save in the SOTI Snap banner to apply your changes.
    Save app button

Results

Tip: Select Preview to see how the widget appears in your app.