You need to sign in to do that
Don't have an account?
Custom Button (javascript) won't work for all profiles
I have no idea what I'm doing wrong here. I've created a custom button to change the record type and update a few fields. It works perfectly for me (I'm the Admin) but it won't work for any other Profile.
Please help!
{!REQUIRESCRIPT("/soap/ajax/13.0/connection.js")}
var newdemo = new sforce.SObject("Demo_Request__c");
newdemo.Id = '{!Demo_Request__c.Id}';
newdemo.Demo_Request_Sent_on__c="{!TEXT(TODAY())}";
newdemo.RecordTypeId="01280000000FEAe";
newdemo.Reject_Reason__c=null;
var result = sforce.connection.update([newdemo]);
if (result[0].success=='false')
{ alert(result[0].errors.message); }
else { location.reload(true); }
Have you ensured through field level security that all of the other profiles have read write access to this field?