Get Textbox input string

Hi.

I have a Textbox (Filter->More…->String) in a dashboard. Every time the string changes, I want to check it.
I created a script for Value Changed in the properties of this Component.

The first problem is that the Value Changed only triggers when, e.g., I click outside the Textbox, and not when I insert a new character. (Should I use a Timer instead to check for modifications in the input string?).

The second problem is very basic. I want to get the input string, I tried different approaches, but none was, apparently, successful. Could you give me an example? The string should have a specific length and I want to compare it. If it doesn’t meet criteria, I want to change background color.

Thank you.

Best regards,

Tiago Marçal

To get the value of Textbox1 you need to do Textbox1.control.value

Not sure how to get the value as you type, a timer does sound like an option

Thank you David.

Textbox1.control.value was what I need.

I tried a Timer and the answer is not direct.

If it is implemented to watch to a textbox, it works as expected.

But I tried to change from a textbox to a numeric data input filter, and it didn’t work.