Hello fellow Australian!
You need to do a little “hack” because the input fields do not like a plus symbol before digits, and it converts it into a positive number.
So you should structure your input like this to split up the +
and numbers to keep them as text, to prevent them from being “recognised” as a number:
replace(+|61; |; emptystring)
You can copy-paste this full solution into your field, and replace 1.phone
with your phone variable.
{{replace(1.phone; "/^0/"; replace("+|61"; "|"; emptystring))}}
Example output
Module Export - quick import into your scenario
You can copy and paste this module export into your scenario. This will import the modules (with fields/settings/filters) shown in my screenshots above.
-
Move your mouse over the line of code below. Copy the JSON by clicking the copy button on the right of the code, which looks like this:
-
Enter your scenario editor. Press ESC to close any dialogs. Press CTRLV (paste keyboard shortcut for Windows) to paste directly in the editor.
-
Click on each imported module and re-save it for validation. There may be some errors prompting you to remap some variables and connections.
JSON module export — paste this directly in your scenario
{"subflows":[{"flow":[{"id":2,"module":"util:SetVariable2","version":1,"parameters":{},"mapper":{"name":"intl_phone","scope":"roundtrip","value":"{{replace(1.phone; \"/^0/\"; replace(\"+|61\"; \"|\"; emptystring))}}"},"metadata":{"designer":{"x":0,"y":0,"name":"Convert Phone to Intl Format"}}}]}],"metadata":{"version":1}}
Note: Did you know you can reduce the size of blueprints and module export code like the above, using the Make Blueprint Scrubber?
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!