Skip to content

How do I read the value of an input field

This example demonstrates initializing a variable with the value of a text/value read from the input field. 

In the solution shown below, you will see that the value in the "Age" input field in HICC is intialized to a variable using "storeValue" command.

Solution:

# Command Target Value
Store the value of the "Age" input field into the variable
1 storeValue id=txt_age age

Tips, Tricks, Gotchas & Best Practices:  

  • The "storeValue" command is used for storing the value. It reads the (whitespace-trimmed) value of an input field (or anything else with a value). For checkbox/radio elements, you can read the value which is either " ON " or "OFF" depending on whether the element is checked or not. Here, "ON" means selected and "OFF" means not selected.
  • For storing a text on UI, you can use the storeText command.


Feedback and Knowledge Base