How do I apply a field format to a data item?

I have created a new field format to mask credit card numbers. I would like to apply this field format to the data item within my application. How do I do this?

In the data item, you can select your field format in the Field Format field on the data item in the Formatting and Validations tab.