Adam
09/09/2020, 8:06 PMvalue
rather than text
of a field in a saved search result? For instance, my saved search is showing what you would see as a result from getText()
ran on that field and instead I'd want it to show the result from getValue()
Sandii
09/09/2020, 8:07 PMSandii
09/09/2020, 8:08 PMMTNathan
09/09/2020, 8:09 PM{select_field_id.id}
but I don't know that I'd rely on it for anything business critical.Adam
09/09/2020, 8:12 PMaddrphone
on address
record so I'm using {address.addrphone}
but it shows the text result of that field, and I am looking for the value resultMTNathan
09/09/2020, 8:17 PMgetText()
on a phone-type field, how does it differ from getValue()
? I usually just use getText()
for select or multi-select fields.scottvonduhn
09/09/2020, 8:23 PMAdam
09/09/2020, 8:38 PM<tel:5555555555|555-555-5555>
however, if you view the value from suitescript api such as running toJson on it or simply running getValue() on the field, it returns it without dashes 5555555555
, what I'm looking for is the result of getValue() without dashes in the saved search resultsSandii
09/09/2020, 9:16 PMscottvonduhn
09/09/2020, 9:55 PMREGEXP_REPLACE({address.addrphone}, '[^[:digit:]]+', '')