function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Radha Rathinavel 1Radha 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")}
 
sfdcMonkey.comsfdcMonkey.com
Hi Radha, 
 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 
Radha Rathinavel 1Radha Rathinavel 1
Hi,

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
 
henryT.ax664henryT.ax664
Please did you find a solution to this problem?