I can’t figure this out. This is my error but my filters are shown to accept less than 11 digits.
Welcome to the Make community!
Looks like the error means you cannot include even a plus symbol in that field.
You can use the built-in function replace
to remove any non-digits from the variable.
e.g.:
{{ replace(1.phone; "/\D+/g"; emptystring) }}
Then, you can trim anything longer than 15 digits using the substring function:
{{ substring(replace(1.phone; "/\D+/g"; emptystring); 0; 15) }}
For more information, see the replace function documentation in the Help Center.
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.
Thank you so much for your help! Am I able to put both formulas in that same field for “number”?
The second example combines the two functions.
1 Like