For a phone field, the text mask needs to be different based on the country.
eg US = ***-***-xxxx AU = xx-xxxx-xxxx
Post code mask
US XXXXX, AU XXXX, and UK has multiple masks.
ADMIN RESPONSE
Sep 7, 2022
Regular Expression is now an ‘Input validation’ type on the ‘Text – short’ control. This will allow you to define a pattern that the string must match. If the input does not match, a custom validation message can be shown on the field.
I'd prefer if we stay away from Regex. whilst powerful it is time consuming and troublesome even for a developer, especially when they haven't used it in a while.
Just being able to set the mask as you can in the text control with the use of 'a' and '9'. the rule would be a case of - if "Country" equals "AU" then "set Mask" "9999" OR if "Country" equals "US" then "Set Mask" "99999"
We are also looking for this possibility. Not necessarily by using a regex, more like a conditional formatting capability taking other form controls into account as well. E.g. * field 1 - IF then : ***-***-***** * field 2 - IF then: ****-******-**** In combination with OR, AND, etc. Would even be more great if we do not need to define this hard coded but would be able to retrieve the IF values and the THEN values from a different location through lookup functionalities.
Just being able to set the mask as you can in the text control with the use of 'a' and '9'. the rule would be a case of - if "Country" equals "AU" then "set Mask" "9999" OR if "Country" equals "US" then "Set Mask" "99999"
* field 1 - IF then : ***-***-*****
* field 2 - IF then: ****-******-****
In combination with OR, AND, etc.
Would even be more great if we do not need to define this hard coded but would be able to retrieve the IF values and the THEN values from a different location through lookup functionalities.