You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

QR Reader Issue

Received Response
edited Dec 8, 2019 11:09PM in Visual Builder 1 comment


I can't get QR Code value and store it in a variable in Visual Builder App page



Please I want to store the QR Code value in the below code which has the name StrCode and pass that value to one of my page variables in the VBCS app.

You can find the code for the QR reader working, however I cant get to know how to retrieve the data of the QR code in the tick function


Code Snippet

define(["resources/jsQR"], function(jsQR) {
  'use strict';

  var PageModule = function PageModule(context) {

    PageModule.prototype.eventHelper = context.getEventHelper();
  PageModule.prototype.setupCamera = function(qrCode) {
    var video = document.createElement("video");

    // Get access to the camera!
    if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {
      // Not adding `{ audio: true }` since we only want video now
        video: {

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!