Hi all I'm trying to remove prices in the item pr...
# suitescript
p
Hi all I'm trying to remove prices in the item price chart on a before load user event, when a user copies an item. i so far that i can get the current field value. but when i try to set a new value it does nothing. not even an error. (the log.debug puts out all values in the matrix) can anyone tell me why this is not working?
b
beforeLoad is not where you want to make changes to the record
at best, you can set default values, usually for when the record is created
p
Why? the matrix should be empty before the user puts in new information.
b
p
Earlier in the same script i clear other sublist fields like this without an issue
b
my recommendation would be to do what the beforeload documentation tells you to do instead of trying to source the record
p
brain fart.. well ofc. i need to use pageinit for what Im doing. Thanks, it was a long day yesterday 😅