HTML Portlet: If isinactive ...
Hi - I'm trying to display a message in an HTML Portlet based on the status of the Inactive field on the Customer record.
The code below is correctly pulling the Inactive field status ... var inact indicates 'true' or 'false' correctly based on the entity record. However, the if statement appears to be ignoring the value. I've done this with other fields w/o issue ... any tips would be appreciated! Thanks -
var inactiveSearch = search.lookupFields({type:'customer',idparams.entity,columns'isinactive'});
var inact = inactiveSearch.isinactive;
if (inact='T') {var Message='This Record Is Inactive'} else {var Message=''};