Popular Articles

  1. sgapiNewPagePDF(%%pdf)

    This function creates a new page in the given pdf. For more info on PHP PDF Creation visit: https://github.com/rospdf/pdf-php/blob/master/readme.pdf Example The below script can be included when building a PDF object to start a...
  2. sgapiExp

    This is equivalent to the exp function in PHP. Calculates the exponent of e. To see an example or learn more other PHP functions and PHP programming, visit PHP Documentation . ...
  3. sgapiArrayDiffKey(%%array1,%%array2)

    This is equivalent to the array_diff_key function in PHP. Computes the difference of arrays using keys for comparison. To see an example or learn more other PHP functions and PHP programming, visit PHP Documentation . ...
  4. Change Text of a Button on a Specific Page

    You can change the text of a Next, Back and Submit buttons just by adding a little JavaScript! 1. Click the  Add New Action  button on the bottom of the page where you wish to change the button. 2. Select Javascript . 3. Name/D...
  5. Maintaining Randomization Order Across Questions

    In this tutorial we'll show you how to use his script to maintain randomization order for images in image choice questions. We'll cover how to do so with questions on the same page and questions on separate pages. This script also stores the random ...
  6. Disable Right-Click In A Survey

    There might be an instance where you want to disable the right-click functionality in a survey. If so, here's a quick piece of JavaScript you can use! Please note that respondents could still use keyboard shortcuts or menu options, this will only di...
  7. sgapiArrayShift(%%array)

    This is equivalent to the array_shift function in PHP. Shift an element off the beginning of array. To see an example or learn more other PHP functions and PHP programming, visit PHP Documentation . ...
  8. sgapiStrToUpper(%%string)

    This is equivalent to the strtoupper function in PHP. This function returns the given string in all upper case using the PHP function strtoupper. To see an example or learn more other PHP functions and PHP programming, visit PHP Documentation ....
  9. Change Header for Different URL Variables

    This JavaScript will allow you to change your survey's header image via a URL Variable*. This can come in handy if you'd like to show different target audiences different images. In this example, we changed the header to be a different color logo fo...
  10. Radio Button Grid: Allow One Answer Per Column

    While we have a Ranking Grid question that automatically validates for a single answer per column there are some scenarios where you might wish to apply this type of validation to a Radio Button Grid question. For example, in a Ranking Grid que...