Hi,
I have created a custom print button which works fine in edit mode of my custom record
var CurrentContractID = nlapiGetRecordId(); location.href=(nlapiResolveURL('SUITELET',8,1) +'&ContractRecordID='+CurrentContractID);All I want to do is get the same results in View mode. I have referanced this code on a user event script that acts on print but it seems user event scripts don't recognise any javascipt functions, I get an error on location, I can't event add a simple window.alert line.Can anyone help, I feel I have done all the hard work I am just missing something in my understanding.