Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Screen out mobile users?

Is there anyway to screen out mobile users from taking my survey using javascript in Sawtooth? The mobile experience for survey is so much more inferior than the desktop version that I fear that survey response quality will be compromised.
asked Apr 1, 2016 by John
This website may be a good place to start:


The site has ready-to-use functions in JavaScript/jQuery that should be able to determine whether or not a user is in a mobile browser.

2 Answers

0 votes
Hey John,

You need to upload the below code as mobile.html which should be placed in graphics folder  in SSI and upload through FTP :

<link href="cloudscape/cloudscape.css" rel="stylesheet" type="text/css"/>
<link href="system/ssi_mobile_style8_4_8.css" rel="stylesheet" type="text/css"/>
<link href="system/ssi_style8_4_8.css" rel="stylesheet" type="text/css"/>

<div class="page" id="page" sizset="17" sizcache09537491082720806="7">

<div class="page_header">


<h2>&nbsp;&nbsp;Please take the survey using Computer or Tablet.</h2>

<div class="page_footer">

answered Apr 12, 2016 by sandeepkapalawai Bronze (1,455 points)
0 votes

We are working on improving the mobile experience, especially with grid questions.  

Soon we will also have a way to detect the width of the screen and optionally send respondents to different pages in the survey.  Here is a work around for now:

1) Create a Free Format question named "screen".
2) Create a variable named "width" and make sure it is of type "hidden" and also set to "whole number".
3) Enter this HTML for the question:

<input name="screen_width" id="screen_width" type="hidden" value="">


This is JavaScript that will set the question "screen_width" to the size of the screen.

You can then use Skip Logic to skip respondents with smaller screen widths to a different page in your survey.  For example:

if   screen_width < 800 go to Q5

Hope this helps.

answered Apr 12, 2016 by Justin Luster Silver Sawtooth Software, Inc. (8,400 points)