You need to sign in to do that
Don't have an account?
Amphitrite
Javascript Onclick button - 'Null is not defined'
I have 4 text fields that I need to set to null. But am getting an error 'Null is not definied' when trying to use the button. Any feedback as to syntax for this?
Here is the relevant piece of my javascript Onclick button code:
var caseUpdate = new sforce.SObject("Case");
caseUpdate.Id = caseObj.Id;
caseUpdate.InEditUserId__c = Null;
caseUpdate.InEditUser__c =Null;
caseUpdate.InEditTime__c =Null;
caseUpdate.InEditViewURL__c=Null;
updateRecords.push(caseUpdate);
Use "null" instead of "Null".
All Answers
Use "null" instead of "Null".
That worked for me on a JavaScript button. Hope that helps!