DirWiz Logo
Knowledgebase

Article Tags

Javascript single line mapping examples

2017-05-31 13:19:23
Custom Mapping Javascript UnitySync 

To insert +44 if the source value does not start with a + character:

NewPhone=&"^telephonenumber^".substr(0, 1) == '+' \? '^telephonenumber^' : '+44 ^telephonenumber^'&

Share this article: Facebook LinkedIn Twitter reddit