> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flowforma.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DocumentUrlPicker

> Use the FlowForma DocumentUrlPicker widget to let users select documents and libraries and generate their URLs, such as for File Upload attachments.

## Function

FlowForma.Widgets.DocumentUrlPicker(container, value, options)

## Description

This function creates FlowForma document URL picker, that will let you select documents and libraries and will generate URL's for them.

## Uses

An example of where this would be used is when adding a document as an attachment in an example, you will need to select a question in the flow that will contain a document (File Upload question). This will then return the URL for this document.

<img src="https://mintcdn.com/flowforma/g56Im1vOp6-ECYen/images/developers/widgets/documenturlpicker/documenturlpicker-1.png?fit=max&auto=format&n=g56Im1vOp6-ECYen&q=85&s=940928641e27a37f2c97f86ed4117b20" alt="DocumentUrlPicker widget" width="609" height="945" data-path="images/developers/widgets/documenturlpicker/documenturlpicker-1.png" />

## Variables

**container**:

*Format* - jQuery input element. (Example: \$("#urlPicker")).

*Description* - This element will be used to build the FlowForma picker on to.

**value**:

*Format* – Stringified JSON object.

*Description* – If the variable is defined it selects the defined URL, otherwise nothing is selected.

## Properties and functions

FlowForma picker object has few functions and properties and can be retrieved as shown below:

var picker = \$ ("#urlPicker").data("DocumentUrlPicker");

**Functions:**

*Picker.Value()* – returns currently selected node object as JSON string.
