Conditional in Input Masks

224
0
12-14-2023 12:26 PM
Kade_Chapman
New Contributor

Are you able to use if statements in the Input Mask column? I have a survey that I have two acceptable formats for a field, either 12 or 13 characters. I want to write something like this to change the mask based of the length of the string: 

if(string-length(.) = 12, xxxxxx-xxxxxx, xxxxxxxx-xxxxxx)

However, I discovered that the text written above becomes the mask. Is there anyway to have two accepted mask?

0 Kudos
0 Replies