Did you Know…

…that you can ask your users different questions depending on whether the barcode they’ve scanned is present or absent from the database? We call these conditional questions, and they’re one of the most powerful and valuable new features in the codeREADr scanner app . Customers like Texas Jasmine, a wholesaler that supplies over 5,000 convenience stores in the Texas area, depend on codeREADr ‘s conditional questions for their ordering infrastructure.

Here’s How it Works

Texas Jasmine hosts a database of inventory on codeREADr.com, and their stores order products by scanning their UPC codes with our app. If the scanned barcode value is present within the inventory, Texas Jasmine asks the user to enter the quantity of the order. If the scan cannot be found in the inventory, the user is asked to enter a description of the item so Texas Jasmine can order it for them.

After the jump, we’ll show you how to create conditional questions with the codeREADr scanner app to collect exactly the data you need – and only that data – from your users.

Note: Conditional questions are currently supported only by codeREADr for Android. But don’t worry: we’ve been working hard over the past few months to bring these features to other platforms.

First Step: Questions

You’ll need to create the questions you want to ask. For the purposes of this example, let’s say we’re a wholesaler, using the Texas Jasmine example above as a template. Sign in to your account and click on the “Data Collection” link in the navigation bar.


You’re going to create two questions: one which will ask for the order quantity only if the scan is in the database, one which will ask for the product description only if the scan is not. Click the “Add a Question” button and type “Order Quantity” in the input field. Since the quantity of an order should only be answered as a number, you might want to limit it as such.

And Next Up:

Under Answer Type, select Short Answer and check “Limit to numeric entry”. The app will display the device’s dial pad when the user tries to answer your question. Press the Create button at the bottom of the form when you’re done.


Now we need to add another question to our account so we can prompt the user for a product description. Press the “Add a Question” button again and type “Product Description” in the input field. Under Answer Type, select Short Answer (with “Limit to numeric entry” unchecked), and press Create.


Finally, you’ll need to add those questions to your service and make them conditional. Click the Services link at the top of the page, and click on the name of the service under which you want to ask those questions. In this case, we’ll use a service we previously created, called “Ordering”.


Scroll down to the “Data Collection” section. You’ll see the questions you’ve just created in a list. When you check the questions to add them, a menu will appear asking when you want to ask this question. For Order Quantity, we’ll select “only after submitting a valid scan”. For Product Description, we’ll select “only after submitting an invalid scan”.



Scanner App: Easy Peasy

Click the Save Service button when you’re done, and you’re all set! Now, when your users log in to codeREADr’s scanner app for Android and select that service, they’ll see the questions you specified after each scan – but only when you want them to.