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 

Saving barcode on a field

Hello, I wanted to make sure that when I take a picture of a barcode, its going to appear on a referenced field on my Salesforce1 app. I am using pic2shop in order to achieve that. So far I want the barcode to remain in my Salesforce1 application after the picture has been taken by the camera via pictoshop, for this I created a button with a Visualforce Page:

<apex:page standardController="Furniture__c">
     <div style="width: 30%">
        <a id="link" href="#" style="text-decoration: none">
            <img style="background: blue; display: block; margin: auto;" width="80%" src="/img/icon/t4v35/standard/product.svg"/>
            <br/>
        </a>
        
        <div style="font-family: sans-serif; text-align: center">
            Tap icon above to scan a piece of furniture
        </div>
    </div>    
    <script>
  


        var furnitureRedirectUrl = "salesforce1://Furniture__c/a0D58000004LIbK/view";     //Ref an Applikation bzw. Objekt/Record
        var a = document.getElementById("link");  
        a.href = 'pic2shop://scan?callback=' + encodeURIComponent(furnitureRedirectUrl);  
               
    </script>
</apex:page>

I used a sample record for thise code but I am not sure how to reference field in order for the code to appear in there. I would appriciate any advice/help.

Thanks in advance! :)