0 votes

I currently have a label hidden with hide(), however am unable to get a limit on the textedit or display the label when a limit is reached.

in Engine by (59 points)

1 Answer

0 votes
Best answer

Yes it is possible

Connect the text_changed(new_text) signal of the lineEdit

func _on_LineEdit_text_changed(new_text):
    if new_text.length() == 5:
        $Label.show()
    else:
        $Label.hide()

Replacing the number 5 with your "certain number"

by (3,080 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.