Discussions
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Join us
Simple Checkbox manipulation
I am trying to use JS to set the value of the isinactive checkbox equal to checked or T when a certain status is selected. However I cannot seem to figure out how to call the checkbox. I have to examples of how I have tried to call the checkbox and set the field value. Neither works. Little help?
function OnFieldChanged(type, name)
{
//This function checks for Status Fields and then throws alerts and changes status
var NewStatus = nlapiGetFieldValue('custentity_contactstatus');
var NewActive = nlapiGetFieldValue('isinactive');
var SetStatus = 'Y';
//alert(NewStatus);
//alert(NewActive);
if(NewStatus == '8')
{
alert('Please edit the Marketing Event tab to qualify the contact on this Marketing Event.');