Skip to main content

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. DocumentUrlPicker widget

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.