getComponentValue

Description

Returns the value of the component specified by the user. The component value can be displayed in another component using the setComponentValue function.

Input / Parameter

NameDescriptionInput TypeDefaultOptionsRequired

component

The name of the component that the value is retrieved from.

String/Text

-

-

Yes

Output

DescriptionOutput Type

Returns the value of the component specified.

String/Text

Example

In this example, we will get the component value of an input field using App.getComponentValue and print it to the console.

Steps

  1. First we drag an input box onto the page. We will name it "InputBox" with the value "This is an input field".

  2. We want to get the value of "InputBox" and display it in the browser console with the help of the Log.write helper function.

  3. Drag App.getComponentValue into the event flow, and specify the name of the component, which in this case is "InputBox".

Result

  1. The value of "InputBox" will be displayed in the browser console.

See also:

Last updated