+ Start a Discussion
Yash SadeghiYash Sadeghi 

Using javascript in apex class

I am trying to create an apex class as a lookup for a mobile application.
For that I wanted to include a part of a java script which should deliver a barcode to me.

This is the part I want to incorporate into my apex class:

p2spro://scan?formats=EAN13,EAN8,UPCE,ITF,CODE39,CODE128,CODE93,STD2OF5,CODABAR,QR &callback=CALLBACK_URL

I would appreciate any kind of advice, thank you.
Hi Yash,

Look-up are ideally not used, rather why don't you check something like autocomplete text box which is almost similar to new lightning lookup.