how should I get the text value? it throws an erro...
# suitescript
m
how should I get the text value? it throws an error:
Copy code
Invalid API usage. You must use getValue to return the value set with setValue
b
use a search to get the name
or load the custom record to get the name
👍 1
k
@mg2017 if the field values doesn't have select or multi-select then you can't get text value, you just have to return value.
@battk it seems like he is trying to return custom free-form text value
m
it's a drop down so multi-select
message has been deleted
i can get the value so I thought I could get the text as well
w
currentRecord.type
m
it's not deployed on the item record, rather a custom record
loading the custom record first like @battk said works, thanks.
b
you might also be able to hardcode a lookup since that list does not look like you can add options to it
👍 1
m
cool, i wouldn't need to add to the list. I just wanted a list of all the standard netsuite items