Jump to content
Welcome to the new FusionPro User Forum! ×

Problem to format phone number


Gerard

Recommended Posts

Hi !

I would like to format a French phone number (10 digits) this way: 01 52 93 44 05 (by adding a space every 2 digits).

As I'm totally new to JavaScript, I usually search informations on the forum to edit or modify existing rules to build mines, a way like another to try to understand the "language" but this time, the operation seems to be too complicated for the beginner I am…

 

I guess I must formulate "for the field "phone", pick the two first digits, then add a space, take the two followers, add another space and so on till digit number 8

 

Searching in the forum, I tried something like :

return FormatNumber("## ## ## ## ##", Field("Tel"));

but it didn't work…

 

As I don't want you to do the job instead of me, some informations to help me to find my way would be really appreciated !

Thank you !

Gerard.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...