# Versions

## Overview

The Labii versions widget serves as a centralized repository for managing and tracking versions of the current record. Labii automatically generates a new version for every individual change made, ensuring comprehensive version control. Users can easily access previous versions by clicking on the respective version links, enabling them to review earlier iterations of the record. Additionally, the widget facilitates seamless restoration to a previous version if required, providing users with flexibility and control over their data revisions.

This widget is similar to the [Versions](/user-guide/detail-view/versions.md) tab of record details view.

## Use case

* View a list of versions of current record.

## Configuration

No additional configurations are required or supported.

## Display versions

The widget exhibits a roster of versions, each accompanied by a version number and a commit message. This message encapsulates the activity, the user responsible, and the timestamp corresponding to the creation of the version.

Additionally, in upholding the integrity of research data, the versions widget furnishes a distinctive hash key for every version. Functioning akin to blockchain technology, this hash key safeguards against any unauthorized alterations to existing versions, reinforcing the reliability and trustworthiness of the data.

## Version Preview

To preview a version, just click on the commit message associated with it. This action will open the version in a print view mode, with read-only permissions enabled.

## Update commit message

Users possess the capability to customize the commit message for streamlined note-taking purposes. Should they wish to designate a specific version for future reference, they can simply click the "Edit" button to input their own personalized commit message.

## Restore a version

To revert to a previous version, simply click the "Restore to Version xxx" button. This action will restore the data to the selected version. Simultaneously, a new version will be generated with the commit message "Restored to version xxx".


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.labii.com/widgets/section-widgets/regulation/audit-trail/versions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
