I created a custom button that marks a check box from false to true. I get an error saying when I click on it and it doesn't update the check box:
Invalid left-hand side in assignment
I copied and pasted this code from another button that we use that, as far as I know, works and just changed the fields. Can someone help me figure out what is wrong with this code? I would've preferred to have used an action, but the standard object "Product2" doesn't support them apparently.
{!REQUIRESCRIPT("/soap/ajax/22.0/connection.js")}
var newRecords = [];
var c = new sforce.SObject("Product2");
c.id = "{!Product2.Id}";
{!Product2.Service_Part__c} = true;
newRecords.push(c);
result = sforce.connection.update(newRecords);
window.location.reload();