Making a Input Field only accepting numbers

Hi

I am making a multiplayer menu for my game and I want the players to be able to set a port for their servers or when joining one. I am using the new 4.6 beta UI and I can’t figure out one thing. How do I make so the text field only accepts numbers? I know how to do it with the old GUI but not with the new one. Do someone know how?

Thanks

To do this programatically,

   InputField iField = gameobject.GetComponent<InputField>();
    iField.characterValidation = InputField.CharacterValidation.Integer;

switch the inspector to debug mode. you will then have access to a field called KeyboardType

32689-s.png