Restricting the number of allowed digits in an answer?

I have a game in UE4 that requires the player to enter a correct number for each question. There are about 10 spaces to make room for answers of varying lengths. The problem I am having is that a player can enter the correct answer in the first few spaces and then enter however many numbers they want after that and still get it right. So, if the answer is 12 they can put 1257899 and still get the answer right. So is there a way to restrict the correct answer to just the correct number but still allow for answers of varying lengths depending on the question?

Hi SierraP,

Would it be possible to get some more information regarding how you set up your Slate edit text box (I’m assuming your using this) and how you are doing the answer checking?

Cheers,

So it is kind of a confusing system, but here are some images of the code and what it looks like.

I just made a macro in my UMG Blueprint to do that. This also restricts people from inputting anything other than numbers. The last is the textbox text bound to a function.

http://puu.sh/tBm1x/14a6e139c2.png

http://puu.sh/tBm3Z/99cd460dfa.jpg

http://puu.sh/tBme3/39318c26d1.png