I’m trying to display the results of a custom table on a pdf – I can use sgapigetvalue etc to display the data for simple question types but am stuck on displaying the data from a custom table.
Could you direct me to an example where data is gathered from a custom table and then included in a pdf for attachment to an email?
While there likely aren’t any very specific examples for your exact use case, in looking at the information located at the bottom of this article:
“You can call sgapiGetValue on a custom table as well. it will return nested arrays.”
As such, something like the following would output an array of the subquestion answers for a Custom Table, where ‘5’ is the ID of the overall Custom Table question.
%%output .= sgapiPrint_R( sgapiGetValue(5) );
I hope this helps!