TextBox
Capture a text input from a user and pass it through to a script using the click event on a button or link.
You can use a textbox as a single-line input field or as a multi-line field. Use a script to capture the values from this field.
Add a TextBox {% endembed %}
Properties
Section titled “Properties”-
Text
This text will be shown in the TextBox when the field loads.
-
Hint
Some placeholder text that will show when the TextBox is empty.
-
Is Password
If you check this checkbox the contents of the TextBox will be masked and not visible to the user, but the value can still be captured in a script.
-
Read-Only
Set to True if you want the control to display as read-only (value can’t be changed) on the page.
-
Validations
Validations you can apply to the TextBox.
-
Visible
Set to False if you don’t want this control to render on the page and be visible to the user.
-
Visible Lines
Set the height of the TextBox in lines. Password will always be 1, no matter what is set here.
Assigning data to a TextBox
Section titled “Assigning data to a TextBox”Example:
To display a TextBox containing a specific value retrieved by a SQL query:
- Use an appropriate Event, e.g. Load (page) or Click (button) to which a SetValue action can be added.
- Add a SetValue action to assign the field value from the query to the TextBox’s Text property.
Retrieving data from a TextBox
Section titled “Retrieving data from a TextBox”Properties that can contain data:
- Text
Use an action to capture the values from the control. Go here for more details on how to collect data from controls.