Input Text (Edit Box)

Top  Previous  Next

editbox The Edit Box exports the text to the defined string variable and in case of integer or float type input box it also exports the numerical value to the defined numerical variable.

Input Text properties:

Fixed width: If enabled, then the number of entered characters is limited by width of InputText object. If unchecked, the width of Input Text object is automatically updated according the length of entered text.

Enable scrolling: This parameter is allowed only if the above "Fixed Width" is enabled. This will allow you to enter more characters than the length of InputText object, however, the width of Input Text remains unchanged. The text inside the object start scrolling if the length of text is higher than the length of Input Text.

Password: If enabled, all characters entered to Input Text will appear as asterisks. However, inside the variables are still real characters. It's good in case you need to create an "Enter the password" box. Remember, that this option does not use an encryption or another kind of protection! So it's not safe to use it as your main application protection!

password

Enable menu: This option enables/disables the right click (in realtime) menu with Cut/Copy/Paste operations and their shortcuts.

Border: In this section can be set the border around the Input text object. For example, with Sunken border it will appear like a standard windows edit box. Border color can be set only for Line border. Both Color and Border can be also enabled/changed via Script (see SetObjectParam command). Here you can see the appearance of available borders..

border

New in 4.8: The Variable associated with Input Box is now automatically initialized with the default text. You don't need to separate initialize the variable. (You can still override the variable in Page Start script)

To change the text in the Input Box on runtime you have to use:

LoadText("OBJECT","STRING VARIABLE")

The string variable doesn't have to be the one associated with the Input Text Object.

for example:

my$=' Enter your name here'

LoadText("EditBox","my$")

For more information see LoadText description.

If you use non-string type (integer or float) the user will be able to enter only the characters used by this type (numbers, floating point, exponent, minus sign).