Skip to content

API

setupHelloCustomerModalSurvey

This function will make sure that the modal survey is configured

PropertyRequiredValuesDescription
tenantIdYesThe tenant id, which can be retrieved from the hello customer portal
touchPointIdYesThe touchPointId, which can be retrieved from the hello customer portal
languageYesNL, FR or ENThe language of the hello customer survey (NL, FR, EN)
metadataNo (default {})The metadata for this survey, can be passed as object. More info here
isPreviewNo (default false)Configures if a preview of the survey should be rendered

setupHelloCustomerInlineSurvey

This function will make sure that the inline survey is configured

PropertyRequiredValuesDescription
tenantIdYesThe tenant id, which can be retrieved from the hello customer portal
touchPointIdYesThe touchPointId, which can be retrieved from the hello customer portal
languageYesNL, FR or ENThe language of the hello customer survey (NL, FR, EN)
isPreviewNo (default false)Configures if a preview of the survey should be rendered
metadataNo (default {})The metadata for this survey, can be passed as object. More info here
elementSelectorYesId 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