Forum

Thread tagged as: Field-Types

Combine Case with Character Limit in Format Attribute

Is it possible to combine both case and character into one format attribute for a template tag?

I tried format="UC|C:2" and format="C:2UC" but those do not appear to work. I'm trying to force proper data entry for state postal codes.

Joel Davies

Joel Davies 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

No, you can't do that currently.

In Perch 3 you'll be able to do this with a template filter.

Thanks, Drew!