Change the data type

Microsoft Office InfoPath

Show All Show All

Change the data type

The values that can be entered into a control are determined by the data type of the field that is bound to the control. If a user types a value with the wrong data type, a standard inline alert will appear.

You can change the data type of a field by using the control's properties for text boxes, list boxes, date pickers, check boxes, and option buttons. Other controls, such as sections, list controls, and picture controls, either do not have a data type or can store only one kind of data type. For fields that do not have a control bound to them, you can change the data type directly in the data source.

ShowChange the data type of a field using the control's properties

ShowChange the data type of a field directly in the data source

Note  If your form template is based on a sample form, pre-existing XML Schema, database, or Web service, you can change the data type only of fields that you have added to the data source.