New Articles

  1. Piping From Two Questions Into One

    Sometimes it is appropriate to ask two separate questions on slightly different themes, but ask a follow-up question about what the respondents select as a combination.  In this case, we set up a script which filters the answer options displayed in ...
  2. Setting Continuous Sum Max Total Value Dynamically

    The Continuous Sum question is a very popular question, particularly with our market research users. Often survey designers are looking to make sure that the continuous sum total matches another value that the respondent entered. In this tutorial, w...
  3. Filtering Textbox List by Checkbox Question

    As piping into answer options is not available for Textbox List questions, this script will query the answers from a source Checkbox question and filter the option list in a target Textbox List question accordingly. For this to work, the option titl...
  4. Remove Back Button on One Page

    This JavaScript will hide the back button on that page that it has been placed on. In the example survey below the back button is hidden on the third page.  Check it out in a survey:  http://www.surveygizmo.com/s3/2037880/Remove-Back-Butt...
  5. Custom Question Builder

    Available on these licenses: Full Access Under Account > Libraries > Custom Questions we provide a framework to build your own survey question from scratch. Below we'll cover a fairly basic custom question setup. Before we get started, you s...
  6. User-Defined Functions

    Our Custom Scripting language has a lot of built-in flexibility, but you might need to define your own functions in a script. In this example, we'll show you how to create three simple functions: Add Values Multiply Values Divide Va...
  7. Find/Replace in Code Editor

    Throughout our application we use the CodeMirror text editor for editing code. Below are keyboard functions for find and replace within the CodeMirror editor in our application. Start searching Ctrl-F / Cmd-F Find next Ctrl-G / C...
  8. Script to Display Follow Up Items for Highest Ranked Max Diff Attributes

    In this example we cover a script to conditionally show text elements based on the attributes that are rated highest in a Max Diff question. We'll be using the following SurveyGizmo features in this example: Max Diff  Question ...
  9. sgapiPageMap()

    This function returns an array of page skus keyed to an array of id => type, as in element type, for all elements in the entire survey, regardless of where in the survey it is used. Return Type Survey Element Type ...
  10. sgapiMax(%%array)

    This is equivalent to the max function in PHP. It is used to find the highest value. Example %%maxvalue = array(85,66,22,99); %%output .= sgapiPrint_R(sgapiMax(%%maxvalue)); // will output 99 To see an example or learn mor...