Hi! I am having an issue with Item sublist Descrip...
# suitescript
a
Hi! I am having an issue with Item sublist Description field on Purchase Order. What I am trying to do: When on existing line Item field in Item sublist is changed I want to keep the previous value of Description field. SO when item is changed it seems that Netsuite tries to pull description from Item record and assign it, but if there is no description coming I want to keep old description value. I tried to implement this in client script fieldChanged function but netsuite sets the value after my change, so if description in item record is empty then it resets description field value. Any ideas how can I build a workaround for this?
n
You could have a hidden 'temp description' field that you just always store what you want the actual description field to be. Then instead of fieldChanged, you could do it on validateLine instead.
👀 1
Oh or inside the postSourcing entry point