How format of text box as in fix length number

I want to create a Text Box… which has some pre defined formate…

  1. Input must be not more than 5 digit number can enter.

sample like… i want to enter 12345 so my condition accept but if i enter 123456 than TaxtBox ingore.

what kind help for the same…

Hi, you can use the event On text changed and inside
if lenght of textbox.text>5
then a notice or what you like , you can also delete the last character added