Skip to main content

Annotate File Action

Annotate File is a page action you add to a View page template. Users open an instance, run the action, and the file attached to it opens in a full-screen markup tool — draw on it, add notes, place numbered callouts, apply a review stamp.

The markup is stored on the instance, so the next person to open it sees the same annotations. The original file is never changed. Annotations auto-save as the user draws, so nothing is lost if they close the dialog — a Save button is also available if they want to save immediately.

Where This Action Is Available

SurfaceAvailable?
View template page action

Configure the Action

  1. Design Studio → Page Templates → open the View template for your type.
  2. Open Action Settings.
  3. Click Create, set Action Type to Annotate File.
  4. Expand the row's settings and fill in the fields below.
  5. Close the panel and Save the template.

Start with File Source — it decides whether the file lives on this instance or on a linked one.

File Source: Self

Use this when the file being annotated is an attachment on the instance itself.

Example: an Inspection type where the PDF is stored in an attachment attribute named InspectionDrawing, and the markup should be saved to a text attribute named AnnotationData.

SettingWhat it doesExample
File SourceWhere the file lives — set to SelfSelf
File to AnnotateThe attachment attribute holding the fileInspectionDrawing
Save Annotations ToThe text attribute the markup auto-saves toAnnotationData
Annotator Data FunctionOptional custom widget — see Annotate File Widget

Self annotation

Use this when the file being annotated is an attachment on a different instance, linked to this one.

Example: an Inspection type linked to a Drawing type through a relation type named InspectionToDrawing. The PDF is stored on the Drawing instance, in an attachment attribute named DrawingFile; the markup is still saved on the Inspection instance, in its own text attribute AnnotationData.

SettingWhat it doesExample
File SourceWhere the file lives — set to Related ItemRelated Item
Relation Direction / Relation TypeThe relationship to follow, from this instance to the one holding the fileTo / InspectionToDrawing
Related TypeThe type at the other end of that relationship — the type holding the fileDrawing
File to AnnotateThe attachment attribute on the related typeDrawingFile (on Drawing)
Save Annotations ToThe text attribute on this type — never on the related typeAnnotationData (on Inspection)
Annotator Data FunctionOptional custom widget — see Annotate File Widget

Related item annotation

Annotation currently supports only one related instance, not multiple — if more than one instance matches the relation, only the first one is used.


What Users See

Users open the actions menu on the instance's View page and click Annotate File. The file opens in a full-screen dialog, scaled to fit.

The annotator

ToolWhat it does
SelectMove and resize existing annotations; pan the document. Double-click one to edit it.
Pen / HighlightFreehand drawing / translucent highlighter
TextA text label — type, then press Enter
BalloonA numbered circle with a leader line, for labelling features
SVGPlaces a review stamp (opens the Action Stamp dialog)
Line / Arrow / RectStraight line, arrow, rectangle
EraserErases by drawing over annotations

Click a tool again for its options — color, opacity, thickness, or font size.

Also available: Undo/Redo, zoom controls, and a menu with Fit to Width/Page, page navigation, Delete Annotations (clears the page), Action Stamp, Download, and Print.

Download produces a flat copy with the annotations burned in — an annotated PDF for PDFs, or a PNG for images. The stored attachment is left untouched.


Limitations

  • Supported files today: PDF and images. Anything else fails to open.
  • If the Save Annotations To attribute is placed on a form, hide it with a Display Condition or make it non-editable — it holds machine-generated data, and if a user edits it and the value stops being valid JSON, the annotator silently opens with no annotations.

Troubleshooting

MessageCause and fix
No file available to annotate.The attachment attribute is empty. Upload a file, or check that File to Annotate points at the right attribute.
Failed to load file. Please try again.The file couldn't be fetched, or the user has no read access to the attachment.
No related instances found.No linked instance of that type. If one exists, check Relation Direction — a reversed direction is the usual cause.
Failed to open file. Please try a different file.Unsupported or corrupt file. Convert it to PDF or an image.
Failed to save annotations.The user lacks update permission on the storage attribute, or it cannot hold a value that long.
Annotator widget errorsSee Annotate File Widget.
The color picker is disabled.An Annotator Data Function is forcing a color. Expected.

Next Steps