passing barcode scanner url from one page to other page
How to pass barcode scanner text from one page to other page on button click?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
How to pass barcode scanner text from one page to other page on button click?
Save the data in local storage, it will be accessible on every page.
I tried it but I am getting null value when I scan first time. 2nd time scan it retrieves the right data.
hi,
Another question on barcode
I am trying to read urls from QR and open it in a browser. However I get null value as text from service. I created barcodetext as a local variable and mapped to barcode text attribute of service.
Here is my code on barcode Success event/Run Javascript action.
window.top.location = localStorage.getItem('barcodetext');
First need to figure out why you are getting a null on the first scan. Does it happen any bar code that you scan? Try adding an error callback and see if there are any errors.