API
setupHelloCustomerModalSurvey
This function will make sure that the modal survey is configured
Property | Required | Values | Description |
---|---|---|---|
tenantId | Yes | The tenant id, which can be retrieved from the hello customer portal | |
touchPointId | Yes | The touchPointId, which can be retrieved from the hello customer portal | |
language | Yes | NL, FR or EN | The language of the hello customer survey (NL, FR, EN) |
metadata | No (default {}) | The metadata for this survey, can be passed as object. More info here | |
isPreview | No (default false) | Configures if a preview of the survey should be rendered |
setupHelloCustomerInlineSurvey
This function will make sure that the inline survey is configured
Property | Required | Values | Description |
---|---|---|---|
tenantId | Yes | The tenant id, which can be retrieved from the hello customer portal | |
touchPointId | Yes | The touchPointId, which can be retrieved from the hello customer portal | |
language | Yes | NL, FR or EN | The language of the hello customer survey (NL, FR, EN) |
isPreview | No (default false) | Configures if a preview of the survey should be rendered | |
metadata | No (default {}) | The metadata for this survey, can be passed as object. More info here | |
elementSelector | Yes | Id of the element where the inline survey should be rendered (always prefixed with #) |
setIsScript
This will configure the hello customer module to use the script approach
getSurveyModal
This function can be used to access the modal instance.
showSurveyModal
This function can be used to show the modal instance.
removeSurveyModal
This will remove the modal from the DOM, can be used to re-render the modal using another language.
getInlineSurvey
This function can be used to access the inline survey instance