> ## 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.

# FlowEntityPicker

> Use the FlowForma FlowEntityPicker widget to let users select steps and questions from a drop-down, as when configuring a Step assign to rule.

## Function

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

## Description

This function creates FlowForma picker, that will let you select steps and questions from a drop-down box.

## Uses

An example of where this would be used is in the [Step assign to](/product/creating-flows/business-rules/business-rule-types/workflow-control-rules/step-assign-to) rule, you will need to "select a step".

<img src="https://mintcdn.com/flowforma/g56Im1vOp6-ECYen/images/developers/widgets/flowentitypicker/flowentitypicker-1.png?fit=max&auto=format&n=g56Im1vOp6-ECYen&q=85&s=1a33f65a4f9bcf1082c13d522c998026" alt="FlowEntityPicker drop-down" width="605" height="588" data-path="images/developers/widgets/flowentitypicker/flowentitypicker-1.png" />

## Variables

**container**:

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

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

**value**:

*Format* – Stringified JSON object. (Example: `'{"StepCode":"step1","QuestionCode":"step1.1","Type":"question","SubQuestionCode":null,"StepId":1,"QuestionId":1}'`)

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

**options**:

*Format* – Object. (Example: `var options = { AllowCustomText: true, SelectSteps: true }`).

*Default options* – AllowCustomText = false;

```js theme={null}
AllowCustomText = false;
SelectSteps = false;
QuestionTypes = [];
DisplayFormProperties = false;
Flow = FlowForma.FlowContext.Flow;
Width = '200px';
DisplayLookupFields = false;
DisableSubQuestionsInRepSubQuestions = false;
OnlyPublishedQuestions = false;
DisplaySubquestions = false;
EnableValueClear = false;
```

*Description –* Allows to set custom functionality to the widget.

## Properties and functions

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

```js theme={null}
var picker = $("#destQuestion").data("FlowEntityPicker");
```

**Functions:**

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

*Picker.Enable(bool)* – enables/disables the picker by passing true or false.

*Picker.Clear()* – clears the currently selected value.picker.

**Properties:**

*Picker.Data* – return array of objects that were built in the picker.
