Low-code designer > Set up interfaces > Widget types > Data widgets / Document versions

Document versions

This widget is used to display all the versions of a document and compare the versions with each other.

By default, the widget is located on the view form of Document type apps. To learn more about working with versions on app item forms, see Version control and document comparison.

Alternatively, you can use the Document versions widget to manage versions of files stored in the Files workspace. To learn more, see Actions with files.

Also, the widget allows you to view and compare versions of files added via a File type property to items of standard apps and to task pages. To learn more, see System data types.

Edit settings of delete widget

You can delete a widget from an app form of the Document type app or change its settings. To do this, go to the view form in the advanced mode. and open the view form interface designer. Select the widget in the sidebar of the modeling canvas. Then click the trash can icon to delete the widget or the gear icon to open its settings window.

Main tab

versions_wdgt

The File and File from context fields are defined automatically according to the app you are working with.

Events and System tabs

These tabs are for system settings that are the same for all the widgets. They allow you to configure a widget’s visibility and access to its data, define what happens, when the user moves or hovers the pointer over the widget, etc. Find out more in System widget settings.

To prevent users from changing the current version of the document, enable the Read only option. Please note that the restriction applies to app items of the Document type and does not apply to files.

Add widget

To add the widget to a form, drag it to the canvas from the right panel of the interface designer or click +Widget. In the pop-up, click on <Not defined> in the File from context field. Select a File property from the context of the app that you are setting up. Click Save.

To make the configured form available to users, click Save and Publish in the top toolbar of the interface designer.