The string control in the MorphX does not provide the functionality or any masking to format the phone number but it can be acheivied by saving the data in the format you need at the table level.
the link of blog will definitely helpful for achiveing this
Phone number formatting
the link of blog will definitely helpful for achiveing this
Phone number formatting