Scanning the QR code to access the record

Mobile devices, especially phones, have small keyboards and screens which can make entering page URLs difficult. If the device has a camera, scanning a code to navigate to a page can improve the user experience.

QR, or Quick Response, codes are two-dimensional barcodes originally used to track automobiles during manufacture. For more information on QR codes, refer to the following link: http://www.qrcode.com/en/history/.

In this recipe, we will create a Visualforce page to display the QR code of an opportunity. When the code is scanned on a mobile device, this navigates the user to the Salesforce1 record home page to allow them to view the opportunity details.

Getting ready

This recipe relies on the mobile ...

Get Visualforce Development Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.