---
title: Allowing users to insert links to media on the Form tab
related:
  - https://docs.kentico.com/k11/custom-development/developing-form-controls/assigning-form-controls-to-fields.md
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

You can use the **Media selection** form control to allow users to select files on the Form tab of a page. Users can then select any file from any source—Pageattachments, Content tree and Media libraries—to insert a link into pagesthat they are editing. 

## To insert the media selection form control

1. Open the **Page types** application.
2. **Edit** () the page type into which you want to add the **Media selection** form control.
3. Switch to the **Fields tab**.
4. Add a new field using **New field**.
5. Fill in the properties of the new field as follows:
   - **Field type**: Standard field
   - **Field name**: MediaSelection
   - **Data type**: Text
   - **Size**: 300
   - **Field caption**: Media selection (for example)
   - **Field description**: any description that you want users to see when hovering over the field caption
   - **Form control**: Media selection (select via the _(more items...)_ option)
6. In **Editing control settings**, specify resizing options for images uploaded using this form control.
7. **Save** the form control.

The system creates a new column in the page type's table – _dbo.CONTENT\_Doctype_. For example, _dbo.CONTENT\_News_ for the _News_ page type. When a user inserts a link to a media using the form control, the link is stored in the column.

> **Tip:** You can display media links on pages using a transformation in a [repeater](https://docs.kentico.com/k11/developing-websites/loading-and-displaying-data-on-websites.md).
