https://netsuiteprofessionals.com logo
Title
m

michoel

07/10/2017, 11:08 PM
var tranid = request.getParameter('transaction');
if(tranid) {
  var type = nlapiLookupField('transaction', tranid, 'type');
  if(type && type === 'SalesOrd') {
     // Your code here
  }
}
j

jen

07/10/2017, 11:58 PM
I managed to solve it with document.getElementById(‘transaction’).value and then nlapiLookupField. A bit kludgey but it worked…
m

michoel

07/10/2017, 11:59 PM
Weird, didn't
request.getParameter('transaction')
work? I am using that in a script succesfully