code: function validatorBarcode(fieldValue, fieldDefinition, previousFieldValues, cb) {
        if (typeof(fieldValue) !== "object" || fieldValue === null) {
          return cb(new Error("Expected object but got " + typeof(fieldValue)));
        }
  
        if (typeof(fieldValue.text) !== "string" || fieldValue.text.length === 0) {
          return cb(new Error("Expected text parameter."));
        }
  
        if (typeof(fieldValue.format) !== "string" || fieldValue.format.length === 0) {
          return cb(new Error("Expected format parameter."));
        }
  
        return cb();
      }
docs: Function to validate a barcode submission
  
  Must be an object with the following contents
  
  {
  text: "<<content of barcode>>",
  format: "<<barcode content format>>"
  }
  
  @param fieldValue
  @param fieldDefinition
  @param previousFieldValues
  @param cb