Integer mask to remove commas

We have a text field that represents the year as such “2,016”. We would like to remove the comma and see “2016”. Is there a mask or stylename to apply to the field that would remove the comma?

You should create a custom datatype for parsing/formatting years and use it for an entity attribute of for a TextField if it is not connected to data.

See the sample project demonstrating custom datatypes: GitHub - knstvk/cuba-sample-datatype. An implementation of year datatype is here.

See also this topic: Formatting columns in GUI Table - CUBA.Platform