is there a way to tell if a transaction is being c...
# suitescript
j
is there a way to tell if a transaction is being created from the actions menu of a customer / supplier record? For example when a SO is created from the customer record's action menu, the customer field on the SO is already populated, which is bypassing some client script logic I have when the customer is selected on a SO.
my current logic is running on client script fieldchanged entery point
c
entity
will be set in the query string
have you checked in pageinit to see if it's set?
j
i tried pageinit but it seems like the entity is set after pageinit
but doesn't trigger fieldchanged
c
Use
currentRecord.getValue({ fieldId: 'entryformquerystring' });
and check
slack bookmark 1
j
Ok I’ll give it a try. Thanks CD!
n
You might find the customer id is in the url parameters (not sure if that "entryformquerystring" is equivalent 🙂
n
You should be able to get the value in the page init. If not, for some reason, then use the set Time Out method.
j
nevermind, I'd made a really dumb mistake and pageInit works fine 🤦‍♂️
netsuite 1