Get Form Element Value Activity

Description

Gets the underlying value of the specified form element.

Usage

You could use this activity to get the numerical value of a Date Time Picker, without needing to refer to "value.value" in an expression.

Inputs

Element

Optional

Type: String | Element

The form element, specified as an expression or ID. For example, =$form1.state.dropDownList1 or dropDownList1.

To target the form element that the subworkflow belongs to, leave Element blank.

Outputs

value

Type: Object

The underlying value of the form element. The columns below show the equivalent expression for each type of element.

Element Type

Equivalent Expression

Example

Auto Complete

 

element.value.data (when element.value is a DataRef object)

=$autoComplete1.value.data

element.value (otherwise)

=$autoComplete1.value

Check Group

element.value.items

=$checkGroup1.value.items

Date Picker

element.value.value

=$datePicker1.value.value

Date Range Picker

[element.value.startDate, element.value.endDate]

=[$dateRangePicker1.value.startDate, $dateRangePicker1.value.endDate]

Date Time Picker

element.value.value

=$dateTimePicker1.value.value

Drop Down List

element.value.data (when element.value is a DataRef object)

=$dropDownList1.value.data

element.value (otherwise)

=$dropDownList1.value

File Picker

element.value.files

=$filePicker1.value.files

Geometry Picker

element.value.geometry

=$geometryPicker1.value.geometry

Item Picker

element.value.items

=$itemPicker1.value.items

List Box

element.value.items

=$listBox1.value.items

Number

element.value.numeric

=$number1.value.numeric

Number Range Slider

element.value

=$numberRangeSlider1.value

Number Slider

element.value.numeric

=$numberSlider1.value.numeric

Password Box

element.value

=$passwordBox1.value

Radio Group

element.value.data (when element.value is a DataRef object)

=$radioGroup1.value.data

element.value (otherwise)

=$radioGroup1.value

Scanner

element.value.value

=$scanner1.value.value

Text Area

element.value

=$textArea1.value

Text Box

element.value

=$textBox1.value

Time Picker

element.value.value

=$timePicker1.value.value

For elements not listed above, the equivalent expression is "element.value". This will be undefined for elements that do not contain a value.

Properties

For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.

Supported Environments

Environments capable of running this activity

Server

 

Client

Web

Mobile

Experience Builder

Web AppBuilder

Geocortex Viewer for HTML5

Levels of Support:      Full Support      Partial Support      No Support

Connectivity Requirements

This activity works when the device has intermittent connectivity to the network.

Version Information

Supported from: Geocortex Viewer for HTML5 2.9, ArcGIS Web AppBuilder 2.4.

See also...

Data Types