Fix form template for text or number type