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
Yash SadeghiYash Sadeghi 

Using javascript in apex class

Hi, 
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.
Arshadulla.ShariffArshadulla.Shariff
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.

Thanks