-
Created On: 01/09/2014
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...
-
Created On: 01/09/2014
in PHP Functions
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 ...
-
Created On: 01/09/2014
in PHP Functions
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 .
...
-
Created On: 01/09/2014
in PHP Functions
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...
-
Created On: 01/09/2014
in Email Campaigns & Actions
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...
-
Created On: 01/09/2014
in Email Campaigns & Actions
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
...
-
Created On: 01/09/2014
in Email Campaigns & Actions
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*
%%...
-
Created On: 01/09/2014
in PDF Functions
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...
-
Created On: 01/09/2014
in PDF Functions
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...
-
Created On: 01/09/2014
in PDF Functions
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...