The problem is that you are putting it in as the input mask. That's completely different, and I didn't even notice that's what you were doing originally. Your formatting the data as General Number, so it will remove any leading zeros.
Remove the input mask and put 0000000 in the Format field...