Constraint

Hi ODK community,

I would like to add a constraint to one of the fields, to be able to enter only one letter and up to 3 numbers, same as (A1 or B30), could anybody help me with that?

Thanks,
Ezzat