Change Input Type while keeping conditions and formatting