Hi All
I'm having some problems with some script... I want to automatically change the value of field 'taxitem' if a user selects a specific 'partner' in a dropdown list
This is what I have now, but it changes the value when ever a new 'partner' is selected. Please have a look and tell me where I'm going wrong.
if (name == 'partner')
{
if (nlapiGetRecordId('partner' == 65451 || 'partner' == 281073)) //partner id
(nlapiSetFieldValue('taxitem',5,true))//tax code
}
Many thanks in advance for your help
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks