2014-11-03 53 views
-1

我想为销售创建自定义按钮以驱动自定义路由,并且出现以下错误:“遇到与此按钮或链接的OnClick JavaScript有关的问题:意外的标识符“使用SFDC的Docusign API自定义按钮 - 提供错误

这是按钮的文本。我很难解决这个问题,因为这个错误很模糊。

下面的代码:

{!REQUIRESCRIPT("/apex/dsfs__DocuSign_JavaScript")} var RC='';var RSL='';var RSRO='';var RROS='';var CCRM='';var CRL='';var CCTM='';var CCNM='';var CRCL='';var OCO='';var DST='';var LA='';var CEM='';var CES='';var STB='';var SSB='';var SES='';var SEM='';var SRS='';var SCS ='';var RES='';RC='';RSL='2';RSRO='';RROS='';CCRM=''CRCL='';CRL='[email protected];FirstName~Matt;LastName~Moog;Role~Signer 2;RoutingOrder~2;[email protected];FirstName~Legal;LastName~Department;Role~Carbon Copy;RoutingOrder~'Email~{!Opportunity.OwnerEmail};FirstName~{!Opportunity.OwnerFirstName};LastName~{!Opportunity.OwnerLastName};Role~Carbon Copy;RoutingOrder~3';CCTM='';CCNM='';CRCL='';OCO='';DST='';LA='0';CEM='Hello,I am sending you this request for your electronic signature, please review and electronically sign by following the link below.We highly recommend that you use the electronic signature to speed the process, however, if you do need to sign manually, please click the MORE button at the top of the Docusign screen and select the "Sign on Paper" option - and complete the process as defined in the dialog box in Docusign. Otherwise, there may be delays in the execution of this process.We appreciate your cooperation.';CES='PowerReviews Request to eSign Contracts - {!Account.Name}';STB='1';SSB='1';SES='1';SEM='1';SRS='1';SCS='1';RES='1,2,2,1,15,3';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+"&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;

+0

凡遵守downvoting问题,请向你为什么downvoted这样的海报可以提高他的问题发表评论。 – Andrew 2014-11-05 18:54:54

+0

因为我不相信这是一个不充分的问题,所以我还投票赞成其中一个反对票。 – Andrew 2014-11-07 06:10:52

回答

2

你有CCRM=''CRCL='';需要将其改为CCRM='';CRCL='';

+0

非常感谢SOOOOO。我看了一个多小时,并没有发现这一点。欣赏它。 – 2014-11-06 21:43:45

+0

我知道DocuSign文档说要将所有内容保留在一行上。在大多数情况下,这不是必需的。如果您想遵循DocuSign的最佳做法,我建议将间隔拨出,然后删除空格。 – Andrew 2014-11-07 06:10:08