我们希望创建一个自定义按钮,但是在遵循了示例文档之后,我们仍然可以在单击该按钮时看到。显示的错误消息:“意外的标识符”
这是一篇值得参考的文章。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~jonathan@epigrowth.com;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;
//*******************************************//发布于 2017-05-24 13:17:43
在CRL的末尾有一个额外的,。
https://stackoverflow.com/questions/44146786
复制相似问题