I'm trying to use getText method for a field both ...
# suitescript
a
I'm trying to use getText method for a field both before load and after submit Before load everything is ok but after submit it is complaining that the value has been set by setValue and should use getValue What's the difference between before load and after submit here?
p
Share your code
s
@Ali - This is a (limitation/design) of the API. There is a SuiteAnswers Article about it. To resolve, you can load the record in the AfterSubmit. Sure it’s cringeworthy, but unless you used ‘setText’ to set the value, it won’t allow you to use the ‘getText’ in the aftersubmit.
a
Thanks