I see whats happening now, when I put the mask as "99999;_" I could see the "_" character where the spaces were, so when theres an input mask, it positions the cursor wherever you click on the field, rather than at the right as if it was an empty field.
So I will try a validator on the field instead.
Bookmarks