You need to sign in to do that
Don't have an account?
Brenzo
Onclick Javascript Button to Update Custom Checkbox on Opportunity Record
I have a page detail button the is designed to execute javascript when clicked, resulting in a custom checkbox becoming marked "true" and the page refreshing/reloading.
Here is the code I am currently working with:
I cannot get the box to become marked true (I have already tried changing
opp.Manager_Followed_Opportunity__c = '1'; to = true/True/'True'/'true' with no success.)
Thank you in advance for any help you can provide!
Here is the code I am currently working with:
{!REQUIRESCRIPT("/soap/ajax/31.0/connection.js")} //declare the varaiable that will hold all the information var newRecords = []; var opp = new sforce.SObject("Opportunity"); opp.Id = '{!Opportunity.Id}'; opp.Manager_Followed_Opportunity__c = '1'; //push the information through newRecords.push(opp); //save the change result = sforce.connection.update([opp]); //refresh the page window.location.reload();
I cannot get the box to become marked true (I have already tried changing
opp.Manager_Followed_Opportunity__c = '1'; to = true/True/'True'/'true' with no success.)
Thank you in advance for any help you can provide!
opp.Manager_Followed_Opportunity__c = 1;
Any other suggestions?
In line 8, try:
...and in Line 14, try:
Pretty sure those ought to work.
Try this one,It should work