getValue
Last updated
Last updated
Returns the value of the component specified by the user. The component value can be displayed in another component using the setValue
function.
component
The name of the component that the value is retrieved from.
String/Text
-
-
Yes
Returns the value of the component specified.
String/Text
In this example, we will get the component value of an input field using Component.getValue
and print it to the console.
First we drag an input box onto the page. We will name it "InputBox" with the value "This is an input field".
We want to get the value of "InputBox" and display it in the browser console with the help of the Console.write
helper function.
Drag Component.getValue
into the event flow, and specify the name of the component, which in this case is "InputBox".
The value of "InputBox" will be displayed in the browser console.
See also:
Functions