Add the Attachment Form Element to Required Pages and Forms

After creating the Attachment property, add it to the required pages or forms using the Attachment form element. This form element doesn’t work without an Attachment property, so you must create the property before starting this procedure.

You can add an Attachment form element to inventory forms when configuring Inventory Photo Attachments. The Attachment property must be created for the Inventory entity and associated with an OCI Object Storage application before you add it to the inventory form.

  1. Sign in as an administrator.
  2. Create an Attachment property.
  3. Click Configuration > Screens.
  4. Click Screens and select a custom form or standard page, such as Activity Details or an inventory form.

    The Attachment form element is added to the selected custom form or standard page. If you add the element to an inventory form, mobile workers can capture and attach photos while adding or editing inventory, depending on how the form is launched from the inventory screen.

    If you export the custom form or user types, the Attachment element configuration, including attachment validation settings, is also exported.

  5. Drag the Attachment element to the required section from the New element section in the visual form editor.
  6. Select the Attachment element and configure as follows:
    1. Select Take Photos to allow this element to capture photos.
    2. Select Add Watermark to Photos to add a watermark to photos captured from this element.
    3. Select Attach Files, to allow attaching files to this element.
    4. Enter a name for this element in the Name field.
    5. Expand the Validation rules and set the minimum and maximum number of attachments that can be uploaded from this element. The maximum range is 1 to 20 attachments, and the default range is 1 to 5 attachments.
    6. Enter a Validation error message that the application should display if the number of attachments uploaded are not within the range.
  7. Click Publish.

Results:

The Attachment form element is added to the selected page or form. If Add watermark to photos is enabled, photos captured from this element include a visible watermark with location and date/time details.
Note: When you export custom forms or user types, the Attachment element configuration is exported, including attachment validation settings and the Add watermark to photos setting.