Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

JavaScript "full" event question


Level 3

I have some code that runs on the "full" event of a text field. When I'm typing in that field and it gets full, the code fires properly. The problem I'm having is that if I set the rawValue of the text box using some javascript and the rawValue text is tool long for the text box, the "full" event doesn't fire.

Any suggestions?

- Nathan

0 Replies


Level 7

Hi Nathan,

What if you added a script to the existing Javascript that measures the length of the Javascript generated string and if it exceeds the length have it fire the "full" event for the field.

var txt = "hello world";

var fullTxt = 6;
if(txt.length  >=  fullTxt )




Hope this helps!



Level 3

Thanks for the response. I had considered that, but the problem with that solution is that the field is rather long and doesn't use a fixed-length font, so it's very difficult to predict what I should use as the value of the "fullTxt" variable in your example.

- Nathan