Updated Articles

  1. 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...
  2. Record Page Title of Randomized Pages

    Randomization is a very popular survey tool for eliminating bias introduced by order and/or survey fatigue. Within SurveyGizmo you can randomize questions, pages (or pages in groups) or even answer options! We have a merge code [page("pagepath...
  3. Show Pages Based off a Drag & Drop Ranking

    In this tutorial we will go over an example script for conditionally showing pages based on the option that is rated highest and/or lowest in a Drag & Drop Ranking question. These steps assume a basic familiarity with SurveyGizmo and progra...
  4. sgapiGetQuestionResponseCount

    This is a realtime reporting function. You can query the total response count for a question using the %%questionID parameter. Or, by passing an option sku in %%osku, you can return the response count for a particular answer option. You can also fil...
  5. sgapiTablePDF(%%pdf, %%data, %%cols, %%title, %%options)

    This function adds a table to the given PDF. Parameters %%pdf - The title of the PDF you are creating. %%data = array() - The array of data to include in the table. %%cols= array() - The array of column headers. %%title - The table t...
  6. sgapiImagePDF(%%pdf, %%image, %%pad, %%width, %%resize, %%just, %%border)

    This function adds an image to the given PDF. Parameters %%pdf - The title of the PDF you are creating. %%image - The image URL. %%pad - Image padding by page unit (defaults to 5). Enter '0' for no padding. %%width - The widt...
  7. sgapiSetColorPDF(%%pdf, %%r, %%g, %%b)

    This function sets the text color for the given pdf.  %%r, %%g, %%b are set to 0 (black) by default. For more info on PHP PDF Creation visit: https://github.com/rospdf/pdf-php/blob/master/readme.pdf Example The below script creates and ...
  8. sgapiSetFontPDF(%%pdf, %%font, %%style)

    This function sets the font and style of the given pdf (%%font is "Helvetica" and %%style is "Null" by default). %%font options %%style options 'adobearabic' 'BoldItalic','Italic','Bold&...
  9. sgapiNewPDF(%%pdf, %%paper, %%orientation)

    This function creates a PDF object that you can store, build and output and send via the sgapiEmailSend function.  Parameters %%pdf - The title of the PDF you are creating. %%paper - The paper size, e.g. 'letter', 'legal&#...
  10. sgapiTextPDF(%%pdf, %%text, %%size, %%options, %%test)

    This function adds text to the given PDF. Parameters %%pdf - The title of the PDF you are creating. %%text - The text to add to the PDF. %%size - The font size (default is 12 ). %%option = array () - 'left' => number - ...