Character limitation not working

I would never imagine an answer so detailed like yours. Let me start saying a big thank you for all the tips and knowledge shown in your post.

I loved to see that placeholder feature but it gets in the way in my alpha interpolation from 0 to 0.65. ( it doesn’t disappear when alpha = 0 ). With your post, I was able to do everything I was imagining and went beyond. check this out :slight_smile: Thank your for being part of my learning journey !

local function onNickEditing( event ) if event.phase == "began" then if event.target.text == "Nickname..." then event.target.text = "" end if event.target.text ~= "Nickname..." then event.target.text = event.target.text end elseif event.phase == "editing" then if (string.len(event.target.text) \> 8) then event.target.text = event.target.text:sub(1, 8) end elseif event.phase == "ended" then if (string.len(event.target.text) \< 4) then event.target.text = "Nickname..." end end end usernameField = native.newTextField( centerX, centerY - 14, 150, 36) usernameField.font = native.newFont( "Gotham", 25 ) usernameField.text = "Nickname..." --usernameField.placeholder = "Nickname..." -- didn't use but it's good for future reference! usernameField:setTextColor( 0, 0, 0, 0) usernameField.inputType = "default" usernameField.hasBackground = false usernameField.isEditable = true usernameField:addEventListener( "userInput", onNickEditing ) local function showNickAlpha () usernameField:setTextColor( 0, 0, 0, 0.65 ) end timer.performWithDelay( 3700, showNickAlpha )