Hi everyone, we have an issue where the "memo" fie...
# suitescript
h
Hi everyone, we have an issue where the "memo" field on Bills keeps resetting to null whenever users edit the Bill and then change the "entity" field. Is there a way to force it not to erase the memo? Thanks
s
look at the scripted record and see what script/workflow is doing that.
h
so it is not a native Netsuite feature, isn't it?
i've looked through scripts and workflows but nothing in the codes setting memo
s
never mind i miss read your question.
i am sure you can write a code that can preserve the value, but that's not my expertise
h
i wrote a client script on fieldChange to preserve the memo but it's not doing it either.
s
Why are they entering the memo before selecting the endor? Seems like a silly process to fix with code.
h
@Sandii they are trying to edit the Bill actually
s
Just ctrl+c on the memo, change the vendor, and past the memo back in. You could prob preserve it with some client script code but then you could run into problems when they actually want to change the memo. Seems like unnecessary problem to fix via code.
h
@Sandii i wrote a client script to have a confirmation dialog popup asking if they want to preserve the memo or not. But even when i deliberately preserve, it's still erasing the memo.
Ctr+C on the memo probably will be the last resort :)
s
How are you capturing what the memo was before they change the entity? It should be gone by the time fieldChange happens, its most likely a sourcing thing. You prob need to get it on pageInit, put it somewhere else (another field), and then restore it after they change the entity.