Skip to content

File Editor

FileEditor opens the file referenced by the form data in the configured file viewer or editor. It is intended for an existing file reference: it does not provide file selection or upload commands. Use File when users must upload, choose, or replace a file.

XML Fields

  • XPath identifies the form-data element containing the file identifier. The widget reads this value; it does not write a replacement identifier.
  • A Revision attribute on the bound element, when present, identifies the revision opened by the file service. When it is absent, the file identifier is used as the revision identifier.
  • Hints is retained in the XML definition, but the current FileEditor client does not render it. Rules contains the formatting or validation rules that apply to the widget.

FileEditor does not have NameXPath, upload data sources, AllowEdit, SetEditingRevision, or RequiredForGroup settings. Availability of an editor and the permissions it receives are determined by the file service and current form access.

Example

1
2
3
4
<FileEditor XPath="Contract/ContentFileId">
    <Hints><![CDATA[Review the contract document.]]></Hints>
    <Rules />
</FileEditor>