2017-05-23 13 views
0

カスタムボタンを作成しようとしていますが、サンプルドキュメントの後にボタンをクリックしても表示されます。表示されているエラーメッセージ:「予期しない識別子」Docusign SFDCカスタムボタン - エラー

これは参照用の記事です。 https://support.docusign.com/en/guides/dfs-admin-guide-sample-js-code-custom-buttons

私はあなたのレビューのためにカスタムコードを添付します。問題の特定にご協力いただけますか?ありがとう!

{!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=''; 
//*************************************************// 


var CRL="Email~{!Opportunity.Primary_Contact_Email__c};FirstName~{!Opportunity.Primary_Contact_First_Name__c};LastName~{!Opportunity.Primary_Contact_Last_Name__c};Title~{!Opportunity.Primary_Contact_Title__c};Role~Signer1;RoutingOrder~1;[email protected];FirstName~Jonathan;LastName~Gav;Title~Consultant;Role~Signer2;RoutingOrder~2"; 


//var CCTM = 'Signer1~Signer;Signer2~Signer';// 

//var CCRM = 'Signer1~Signer1;Signer2~Signer2';// 

var LA = '0'; 

var CES='Sales documents from {!Opportunity.OwnerFullName} are ready to be signed.'; 

var CEM = "Here is the document that requires your signature. Signing electronically is our preferred option. Please click on the View Documents button below and you will be taken to the document, where you will see an option to sign.\\n\\nYou can also sign and fax back by pressing View Documents and select Sign On Paper. Please note that if you choose to fax, please only use the DocuSign provided cover sheet. \\n\\nPlease contact me with any questions.\\n\\nThank You\\n\\n{!Opportunity.OwnerFullName} \\n{!Opportunity.OwnerEmail} \\n{!Opportunity.OwnerPhone}"; 

//********* 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="+CRCL+"&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; 
//*******************************************// 

答えて

1

あなたのCRLの最後で迅速な応答を

+0

おかげで余分な,を持っています。私は適切な更新を行い、いくつかの他のタイプミスを発見した。今、このエラー "missing; before statement" – Jonathan

+0

CESは文字列の最後に '' '' ''がありません – Andrew

+0

ありがとうアンドリュー。私はそれを更新しました。そして今、私は "予期せぬ識別子"を得ています。思考? – Jonathan

関連する問題