---
title: "Uri.editRecord ViewHelper <be:uri.editRecord>"
manual: "Fluid ViewHelper Reference"
version: "13.4"
permalink: "https://docs.typo3.org/permalink/t3viewhelper:typo3-backend-uri-editrecord@13.4"
source: "Backend/Uri/EditRecord.rst"
modified: "2026-09-17T09:07:45+00:00"
---

# Uri.editRecord ViewHelper `<be:uri.editRecord>`

> [!NOTE]
> This ViewHelper is not available by default.
>
> [Import its namespace](https://docs.typo3.org/m/typo3/reference-coreapi/13.4/en-us/ApiOverview/Fluid/Index.html#fluid-syntax-viewhelpers-import-namespaces)
> `{namespace be=TYPO3\CMS\Backend\ViewHelpers\}` in the Fluid file or
> `xmlns:be="http://typo3.org/ns/TYPO3/CMS/Backend/ViewHelpers/"` in the opening HTML tag.

ViewHelper to provide edit links (only the URI) to records. The ViewHelper will pass the uid and table to FormEngine.

The uid must be given as a positive integer. For new records, use `<be:uri.newRecord>`.

Go to the source code of this ViewHelper: [Uri\\EditRecordViewHelper.php (GitHub)](https://github.com/TYPO3/typo3/blob/main/typo3/sysext/backend/Classes/ViewHelpers/Uri/EditRecordViewHelper.php).

## Arguments of the `<be:uri.editRecord>` ViewHelper

-   **fields**

    -   *Type:* string

    Edit only these fields (comma separated list)

-   **returnUrl**

    -   *Type:* string
    -   *Default:* ''

    return to this URL after closing the edit dialog

-   **table**

    -   *Type:* string
    -   *Required:* true

    target database table

-   **uid**

    -   *Type:* int
    -   *Required:* true

    uid of record to be edited, 0 for creation
