You are viewing limited content. For full access, please sign in.

Question

Question

Zero-fill last 4 digits of a template field

asked on July 30 Show version history

I have a template field for TMK (tax map key). It's a 12-digit (\d{12}) multi-value template field (Text data type). Many TMKs have the last 4 numbers being zeros. For example, 1-2-345-678-0000.

For easy data entry, is there a way to have it automatically fill the remaining digits with zeros? For example, I'd like to make it so that people can enter 12345678, press the Tab key and not have to type the remaining 0000, but have it automatically fill.

0 0

Replies

replied on August 5

This is a direct entry to a template field? You could create a workflow that reviews the entry after 'entry change'. If it meets a criteria e.g. (\d{8})  then append '-0000'. 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.