• tommy.coute
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hello Everyone,

I have created a custom button with code to update the Docusign Email Subject to "Please Docusign "Contract_Name". When attempting to test the button I receive the following error:

User-added image

This is the code in which I created: 
{!REQUIRESCRIPT("/apex/dsfs__DocuSign_JavaScript")} 
//********* Option Declarations (Do not modify )*********// 
var RC = '';var RSL='';var RSRO='';var RROS='';var CCRM='';var CCTM='';var 
CCNM='';var CRCL=''; var CRL='';var OCO='';var DST='';var LA='';var CEM='';var 
CES='';var STB='';var SSB='';var SES='';var SEM='';var SRS='';var SCS ='';var 
RES=''; 
//*************************************************// 
// Custom Email Subject (default in config) 
CES = 'Please DocuSign: {!REVVY__MnContract__c.Name}'; // 
//********* Page Callout (Do not modify) *********// 
window.location.href = 
"/apex/dsfs__DocuSign_CreateEnvelope?DSEID=0&SourceID={!Opportunity.Id}&RC="+RC+"&RSL="+RSL+"&RSRO="+RSRO+"&RROS="+RROS+"&CCRM="+CCRM+"&CCTM="+CCTM+"&CRCL="+CRC 
L+"&CRL="+CRL+"&OCO="+OCO+"&DST="+DST+"&CCNM="+CCNM+"&LA="+LA+"&CEM="+CEM+"&CES= 
"+CES+"&SRS="+SRS+"&STB="+STB+"&SSB="+SSB+"&SES="+SES+"&SEM="+SEM+"&SRS="+SRS+"& 
SCS="+SCS+"&RES="+RES; 
//*******************************************//

I followed the instructions provided by Docusign which they also provided a sample code to start with.
https://08d1d92f490618f41c65-8fb00e97ac499a7066a18ce9c66b019b.ssl.cf2.rackcdn.com/DocuSign_for_Salesforce_Custom_Button_Logic.pdf.

Can someone please assist? I'm pretty new to Java Script. Thanks.