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
Ramu kolliRamu kolli 

How to access static resource javascript function from lightning helper

Dear All,

I am trying to call a JavaScript function from Static resource in lightning helper file. I want to pass phone number and country code to the static resource JS function from helper file and that JS will return formatted phone number based on the country(This logic i already uploaded in static resource). 
Raj VakatiRaj Vakati
You need to pass the values from the controller js to helper 

Refer this link 

https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/security_share_code.htm

 
helper.doCall(cmp ,event ,helper ,youRFunction)

component.set("v.value", _counter.getValue());

 
reddy gangureddy gangu
Hi @Ramu kolli,

Were you able to figure out, how to do the above ask? I have similar requirement for phone and country codes. Can you plz let me know if you figured out something.

Thanks
Mahender