How do I format a field to only allow specific type of input such as a currency amount, date etc.