I'm trying to save a record which has a field of t...
# suitescript
v
I'm trying to save a record which has a field of type 'Phone Number'. When I enter a number in that field (ex: '5551231234') and save the record in the Netsuite UI, I see that the number gets formatted to the preferred phone number format automatically (ex: '555-123-1234'). But when I do the same via Suitescript (2.0), the number stays as it was entered. (ex: stays as '5551231234'). Can we not enable auto formatting when saving a record via SuiteScript? I've tried using dynamic mode and also tried setting enableSourcing to true while saving the record, both did not work.
c
Are you saying that it looks unformatted when you view it in the UI after saving via SS2, or it's unformatted when saved and read back via SS2?
b
v
@CD Once saved via SS2, it looks unformatted in both scenarios: when viewing in UI as well as while reading back in SS2.
@battk Thank you, I will check this.
this works perfectly. thanks @battk 🙂