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

Question

Question

Regex and Prefilling of a Field in a Template

asked on April 29, 2021

We have a field in one of our templates that will correctly format and enter the static elements from the regular expression from the constraint.  For example if you put in "T \d\d R \d\d" as a constraint, the field will prefill "T  R  " in the field when entering the template.  We need to expand one of the digits in the field, but to make it work we need to make one of the digits optional. For example "T \d\d R \d\d\d?".  Once we do that it quits prefilling the field with the "T   R  ". Does anyone know of a way to keep it prefilling the field, while having an optional digit in the regex?

 

    

0 0

Replies

replied on April 29, 2021

If the constraint has a fixed number of characters, the desktop client will show the field mask. If the constraint has a variable number of characters, it can't, because there's too much guessing involved for validation.
 "T \d\d R \d\d\d?" falls into the second category because of the option digit at the end.

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

Sign in to reply to this post.