You need to sign in to do that
Don't have an account?
Radha Rathinavel 1
how to add the javascript file
How to add the Javascript file in Lightning component?
Using custom button code in javascript :
{!REQUIRESCRIPT("/apex/dsfs__DocuSign_JavaScript")}
var rc = GetRelContentIDs("{!Case.Id }");
window.location.href = "/apex/dsfs__DocuSign_CreateEnvelope?DSEID=0&SourceID={!Case.Id}&rc="+rc;
Lightning component:
Hoe to add the below script to my lightning component
{!REQUIRESCRIPT("/apex/dsfs__DocuSign_JavaScript")}
Using custom button code in javascript :
{!REQUIRESCRIPT("/apex/dsfs__DocuSign_JavaScript")}
var rc = GetRelContentIDs("{!Case.Id }");
window.location.href = "/apex/dsfs__DocuSign_CreateEnvelope?DSEID=0&SourceID={!Case.Id}&rc="+rc;
Lightning component:
Hoe to add the below script to my lightning component
{!REQUIRESCRIPT("/apex/dsfs__DocuSign_JavaScript")}
check following post for add External JavaScript Libraries in lightning component :
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/js_libs_platform.htm
FYI : https://trailhead.salesforce.com/en/modules/lex_javascript_button_migration
Thanks let us know if it helps you
I used
<ltng:require scripts="{!$Resource.DocusignCommunity}"></ltng:require>
In DocusignCommunity file..I have uploaded the javascript file to static resource..
In Lightning Helper: var rc = GetRelContentIDs(SourceID);
GetRelContentIDs is not working... please help me