Get Input Value
Last updated
Last updated
Get Input Value
is an that allows you to retrieve the value of , and elements on a page or form. The output is of type and is compatible with of type or of type .
Refer to the block for dynamically generated content.
The block comes in two modes which are discussed below.
The image below shows an example of the Mode 1 version where the variable b is set to the text entered in the selected input element.
The Mode 1 version of the Get Input Value block consists of a to choose the element you want to get the value of.
The Mode 2 version of the Get Input Value block consists of a that accepts either a value in the form of a or an value The Element block comes pre-attached for your convenience but can be removed and customized.
In the next example we see a Mode 2 version where the variable b is set to the text entered in the selected input element. This time the element is selected using a .
Lastly we have another example with a Mode 2 version. This time the block is used to show a message that contains the text entered in the selected element.