The widget parameters enable you to customise your participants’ experience, for example ensuring that a video is submitted before progressing to the next question or allowing the participant to skip the video question.
In our experience, the most effective customer journeys can be delivered simply using sendResponse, onEnd and uid.
These extra parameters should be added at the end of the frame.src
Widget parameter list
Parameters | Example user cases | Description and notes |
sendResponse | Allows you to create your own submit button and control the flow. |
|
onProgress | Allows you to expose different messages through the upload process, making sure the user is aware that the upload is still in progress. This should help encourage participants to not exit the page too early. |
|
onEnd | Allows you to specify what happens when the upload is complete for example can be used to display 'Next step' or to mark the survey as completed (and this can be used with or without "sendResponse") |
|
onError | There are error messages already coded within InColor and this allows you to switch them on for your users. The errors are:
|
|
supressErrorDialog | It suppresses the InColor error dialogue (for the case when the platform handles the errors using `onError` parameter for custom error display or custom behaviour) |
Respondent properties
The respondent properties are optional; if the host does not send anything, inColor will generate a uniqueID and will mark the contact as 'Anonymous'.
Parameters | Description and notes |
uid | unique contact identifier |
email | email address |
firstName | first name of the respondent |
fullName | full name of the respondent (first name + last name) |
age | age of the respondent |
birthDate | birth date of respondent in format YYYY-MM-DD |
gender | gender in format {male, female} |
country | ISO 3166-1 alpha-2 ; example {GB, US} |
language | ISO 639-1 ; example {en, fr} |
Response properties
The response can be appended with tags.
tags | You can add tags to the response/contribution. Example: ?tags=tag1,tag2, tag3 ... |
responseTitle | You can change the default response title (Response #01, Response #02 etc) by adding this parameter |