I am trying to set a field value on popup from ano...
# suitescript
n
I am trying to set a field value on popup from another record, how are ya'll handling that in 2.1/2.0? So, for example custom record add new customer popup set some default value from custom record (edited). Need to get the record id from the Work Order to use on this pop new record im creating from it.
b
use window.opener to run code in the context of the opening window
in particular, you have access to the require Function, so you have access to N/currentRecord
n
Thanks, i'll try that out
@battk is that done through a client script referencing window.opener?
@battk nevermind i got it working. Thanks!!