Max amount letters in textbox

Hi there

Im following the UE4 networking tutorial, but i when i tried to type in the textbox it went (together with the rest of the menu) all the way to the right.
Is there a way to set a maximum amount of letters to type in the textbox?

Thanks

Hello timb

Here is my solution to your question:

  1. Create your textbox and create a binding to its text

  1. Create an OnTextChanged on your textbox and create a temp string and get the length of your text and if the text length is for example less than 5 then add this text to the temp string and if it is bigger than for example 5 then get the temp string and use it to set the value of the textbox.

Thanks for the response, but for some reason i cant connect my text box with the set text target

HAHAA, it worked!! Thanks alot!!!

Your Welcome :slight_smile:

Is there a way to get this to work without using OnTextChanged?