Forsta incorporates a number of 3rd Party Software Components. Some of these components may allow or require scripting to extract the full benefits of usage.
CintFulfillmentRespondentsTransition
The CintFulfillmentRespondentsTransition scripting function has the following signature:
CintFulfillmentRespondentsTransition(respondentId: String, status: String)Below are examples of how you might use the function to pass one of the three transition status values. Note that all three are displayed together here; you would only ever use one at a time.
Note: This function requires that an administrator with the Company admin permission adds the Cint API key to the Company Details page > Security tab. See the Forsta Administrator documentation for further details.
Code examples:
//Complete
SetStatus('complete')
SetInterviewEnd()
CintFulfillmentRespondentsTransition('04fe9a97-a579-43c5-bb1a-58ed29bf0a6a', 'Complete')
//Screened
SetStatus('screened')
SetInterviewEnd()
intFulfillmentRespondentsTransition('04fe9a97-a579-43c5-bb1a-58ed29bf0a6a', 'Screenout')
//QuotaFull
SetStatus('quotafull')
SetInterviewEnd()
CintFulfillmentRespondentsTransition('04fe9a97-a579-43c5-bb1a-58ed29bf0a6a', 'QuotaFull')
//QualityTerminate
SetStatus('screened')
SetInterviewEnd()
CintFulfillmentRespondentsTransition('04fe9a97-a579-43c5-bb1a-58ed29bf0a6a', 'QualityTerminate')
The interview would be completed with the specified status and the respondent with the specified respondent GUID will have the specified status passed over to Cint. Note that in these examples a GUID is hard-coded, however it could reference a variable within the survey.