Advanced AppLab Features

Yes.

But there are not two elements with the same name. Keep in mind that the design tab creates HTML code separate from the Javascript code created by the code tab. So we have one element named "sum" and one variable named sum.

I usually try to name them differently so there is not too much similarity between the names. But I understand every person has a different style. It is cleared up now, thanks.

Hi all,

Can anyone help with this?

I have text input boxes on the screen that the user enters one letter into.
Once they enter a letter I want it to lock so that they cannot change it.

Thank you in advance,
Nate

Try this. App Lab - Code.org

To limit the number of characters in an input text, use the following conditional inside the event handler for input

	if (getText("tiname").length > maxlength) {
	  setText("tiname", getText("tiname").substring(0,maxlength));
	}

where "tiname" and maxlength are specific to the sample code.