New Articles

  1. SurveyGizmo Functions

    These functions were built to allow you to interact with your surveys to build the exact functionality you want. Question Functions These are functions that allow you to evaluate and affect survey questions. For example, sgapiGetVa...
  2. sgapiStrLen(%%string)

    This is the equivalent of the strlen function. This function returns the length of the string. Example The below example will return the string length entered in the textbox from question ID 2. Check it out in an Example Survey ...
  3. sgapiPreg_Match(%%pattern, %%subject, %%matches, %%flags, %%offset)

    This is equivalent to the preg_match function in PHP. Use to perform a regular expression match. To see an example or learn more other PHP functions and PHP programming, visit PHP Documentation . ...
  4. sgapiIn_Array(%%needle,%%haystack,%%strict)

    This is equivalent to the in_array function in PHP. It searches the array %%haystack for %%needle. Setting %%strict to TRUE will also check the type of the needle in the haystack. To see an example or learn more other PHP functions and PH...
  5. sgapiRemoveContactFromList(%%listID, %%email)

    This function removes a contact from a Contact List. Example In the below example we remove the contact specified in question ID 10 from an existing Contact List inside the Contact Management system. %%listid = 116; %%email = sg...
  6. sgapiAddContactToList(%%listID, %%email, %%fields, %%customfields)

    Our Email Lists allow account administrators to manage contacts for email lists at an account level. This function adds a new contact or updates an existing contact inside of a Contact List (as opposed to an email campaign). Parameters ...
  7. sgapiEmailSend

    This function constructs and sends an email at the runtime of your custom script. sgapiEmailSend(%%to, %%toName, %%from, %%fromName, %%subject, %%textBody, %%htmlBody, %%bcc, %%mailReplyTo, %%type, %%attachments) Parameters* %%...
  8. sgapiHTMLTOPDF(%%contents, %%landscape, %%border)

    Converts the HTML provided in %%contents to a PDF file. %%landscape and %%borders parameters are boolean values and are optional. By default, the %%border parameter is true, and the %%landscape parameter is false. The %%border parameter wi...
  9. sgapiPDFOutput(%%pdf)

    This function returns the output of your pdf. For more info on PHP PDF Creation visit: https://github.com/rospdf/pdf-php/blob/master/readme.pdf Example The below script creates and builds a PDF object, outputs it and adds it as an attachment...
  10. 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 width of the...