Download javascript file from here and upload as static resource in your salesforce org with name ‘Html5QRCode’ Now create a visualforce page using below code- Above code is self explanatory. Upon successful scanning, this code will redirect you the website related to your QR code. Credit for this QRCode JS library goes to Minhazav
Category Archives: Javascript
Salesforce Chat Agent (Advanced)
This blog assumes you have basic understanding of chat agent configurations. So once you have created ‘Embedded Service Deployments’, you have to ‘Chat Code Snippet share it to the customer portal. Now there is below requirement- For Available Chat Agents- New Contact should not be created. Contact should be searched based on combination of firstContinue reading “Salesforce Chat Agent (Advanced)”
How to access custom attributes from an event object
You can use following two approach to access attribute value from event object- Approach 1 – Retrieve using standard Attribute: Here we can use name attribute. We access the attribute value using event.target.{attribute name}. Check printNameAttribute method in below code which retrieves value from Name attribute. Approach 2 – Retrieve using Custom Attribute: Here weContinue reading “How to access custom attributes from an event object”