New Articles

  1. sgapiSetPageStartingNumber(%%question_num)

    This function sets the number of the first question of the page (default is 1). You can use this script on each page to restart the question numbering on each page. Example The below example script can be placed on the beginning of each...
  2. sgapiRunAction(%%questionID)

    This function causes the given action to run and returns true if it is successful (returns false if given questionID is not an action). Example sgapiRunAction(27);
  3. sgapiSetCustomTableValue(%%qID, %%rowname, %%value)

    This function allows you to set the value for an individual cell in a custom table question. Example The custom table has two rows and two column questions (one radio button and one textbox). In this example, we will pre-populate the ra...
  4. sgapiSetTableOrderByTable(%%tableID,%%refID,%%language)

    This function accepts two table Question IDs and orders the rows of the table in %%tableID by the table in %%refID. This allows you to maintain randomization order across tables in your survey. The row headers for both tables must be identical. ...
  5. sgapiPipeMatrixRows(%%questionID, %%rows)

    This function pipes the given rows into the given Custom Table question. You can specify a static value or pull selected values from a previous question. Example The below example pipes the given rows in the array into the given Custom ...
  6. sgapiSetPipeValues(%%questionID, %%array)

    This function question pipes the given question based on the values specified in %%array. Example The below example question pipes the array from question ID 4, a checkbox question, and question pipes question ID 5 from this array of va...
  7. sgapiGetPipeValues(%%questionID)

    This function returns an array the piped values for the given question-piped question. Example In the below example we output the values of question ID 6 which is negative question piped from a question on a previous page. Check i...
  8. sgapiGetPipeSkus(%%questionID)

    This function returns an array of skus=>values for the given question-piped question. Example Check it out in an Example Survey For example if we question pipe from the below question... Into this question and output ...
  9. sgapiGetTableQuestionSkus(%%questionID)

    This function returns an array of skus for the given table. This can also be used to get the skus for the subquestions in Custom Groups. Example In this example we output the array of table question skus to the page. Check it out ...
  10. sgapiGetTableQuestionTitles(%%questionID)

    This function accepts the Question ID of a table and returns an array in the following format: [questionID] => "title"  Example In this example we output the array of table question titles to the page. Check it out in an Example S...