NC Photo and Signature

Not yet released: this component will ship in an upcoming Native Rent package version.

NC Photo and Signature takes photos, a signature, or both, on a Flow screen. Photos use the file uploader and are attached to a record. The signature is drawn on a pad and saved as a PNG File on the same record.

Use it for handover photos, a signed confirmation, or a damage report on a Rentable or Transaction Detail record.

Photos

Photos use the standard file uploader. It accepts image files with these extensions: .png, .jpg, .jpeg, .gif, .webp, .bmp, .tif, .tiff, .heic, and .heif. It accepts more than one file. Files are attached to Record Id. The new File Ids go to Content Document Ids. Map it in and out to keep the list if the screen is re-created.

A required photo field on desktop with Upload Files and a drop area. No photos added yet.
A required photo field on desktop with Upload Files and a drop area. No photos added yet.

Add it to a screen

  1. Add NC Photo and Signature to the screen. Set Mode and the Record Id of the record that will own the Files.
  2. Map Content Document Ids and Signature Content Document Id in and out of variables.
  3. Set Required and Minimum Photos as needed. Leave Show Clear Button on unless the pad should not be cleared.
  4. Files saved during testing stay on the record. Clear does not delete them.

After the user taps Save signature, "Saved." shows under the pad and is announced to screen readers. It clears when the user draws again or taps Clear. Drawing again after a save turns Save signature back on. Saving again adds a new version to the same File, so Signature Content Document Id keeps the same Id. After Clear on the same screen, Signature Content Document Id is blank until the next save, which also adds to that File.

Validation

Phone and desktop

Auto stacks the panels on a phone or a narrow column, and places them side by side on a wide screen when both are shown. 44 px touch targets apply at 600 px or less, on a phone, or on a touch screen. NC Photo and Signature has no Color Map.

Limits

Properties

PropertyAPI nameDefaultDescription
LabelfieldLabel(blank)Optional heading shown above the component.
Help TexthelpText(blank)Optional hint under the label.
Modemodebothphoto, signature or both (default).
Record IdrecordId(blank)The record to attach Files to. Required to save photos or the signature as Files. Without it the uploader is disabled and a signature is held only in Signature Data URL.
RequiredrequiredfalseBlock Next until the required photos and/or signature are captured.
Required MessagerequiredMessage(blank)Optional. Blank uses the translated default.
Minimum PhotosminPhotos0Block Next until at least this many photos have been uploaded. 0 = no photos needed (in Photo mode, Required on still needs 1). Photo and Both modes only.
Signature LabelsignatureLabel(blank)Optional heading above the pad. Blank uses the translated default.
Show Clear ButtonshowClearButtontrueShow a Clear button on the signature pad.
File Name PrefixfileNamePrefix(blank)Optional prefix for the saved signature file name. Blank uses Signature.
Layoutlayoutautoauto (default), stack or side. Auto: stacked on phones or under 600px, side by side on wide screens when Mode is Both.
DisableddisabledfalseShow the component read-only.
Accent ColoraccentColor(blank)Selected and focus color, e.g. #0B5CAB. Hex, rgb() or a color name. Lightened or darkened until it reaches 3:1 against the tile color (or the theme surface if no tile is set). Also tints the focus ring and the selected/highlighted row. Blank follows the org theme (and dark mode).
Background ColorbackgroundColor(blank)Optional color behind the whole component.
Text ColortextColor(blank)Optional. On choices and results: used as-is on the theme surface, or checked at 4.5:1 against a tile color if one is set. On the label and help: checked at 4.5:1 against the background if one is set; otherwise dark or white text is picked automatically.
Text Sizesizemediumsmall, medium (default), large or xlarge.
Corner Shapeshaperoundedrounded (default), square or pill.
Alignmentalignstartstart (default), center or end.
Navigate After SelectionnavigateOnSelectnonenone (default), next, back, finish or pause. After a photo is uploaded or a signature is saved the Flow can move on, so you can hide the screen footer buttons. Next and Finish check Required first; Next becomes Finish on the last screen.
Available ActionsavailableActions(blank)Set by Flow; do not map.

Outputs

OutputAPI nameTypeDirectionDescription
Content Document IdscontentDocumentIdsText collectionInput and outputIds of uploaded photo Files (ContentDocument). Map in and out to keep the list if the screen is re-created.
Signature Content Document IdsignatureContentDocumentIdTextInput and outputId of the saved signature File (ContentDocument). Map in and out to keep it if the screen is re-created.
Signature Data URLsignatureDataUrlTextInput and outputPNG data URL of the current signature. Used when no Record Id is set (the file cannot be saved), and to restore the pad if the screen is re-created.

Shared behavior

Layout and width, required messages, colors, navigation, data sources, translations, accessibility, and the setup panel work the same way on every component. See NC screen components.

To copy this component's settings to another screen, use Copy settings at the top of its setup panel. See Copy settings.