Class for opening survey in a new tab/window
In the openNewWindow You can specify if the survey should be opened in a new window, otherwise only a new tab will be created
openNewWindow
import { UrlBuilder, WindowSurvey } from '@hello-customer/website-touchpoint' const urlBuilder = new UrlBuilder({ baseUrl: 'https://base.com', language: 'EN', tenantId: 'xxxx', touchPointId: 'zzz', extra: { isPreview: true } }); const inlineSurvey = new WindowSurvey(urlBuilder, { openNewWindow: true });
<script src="https://unpkg.com/@hello-customer/website-touchpoint"></script> <script> const urlBuilder = new hcWebsiteTouchpoint.UrlBuilder({ baseUrl: 'https://base.com', tenantId: 'xxxx', touchPointId: 'zzz', language: 'EN', extra: { isPreview: true } }); const inlineSurvey = new hcWebsiteTouchpoint.WindowSurvey(urlBuilder, { openNewWindow: true }); </script>
Close survey
Open survey
Generated using TypeDoc
Class for opening survey in a new tab/window
In the
openNewWindow
You can specify if the survey should be opened in a new window, otherwise only a new tab will be createdExample (es module)
import { UrlBuilder, WindowSurvey } from '@hello-customer/website-touchpoint' const urlBuilder = new UrlBuilder({ baseUrl: 'https://base.com', language: 'EN', tenantId: 'xxxx', touchPointId: 'zzz', extra: { isPreview: true } }); const inlineSurvey = new WindowSurvey(urlBuilder, { openNewWindow: true });
Example (script tag)
<script src="https://unpkg.com/@hello-customer/website-touchpoint"></script> <script> const urlBuilder = new hcWebsiteTouchpoint.UrlBuilder({ baseUrl: 'https://base.com', tenantId: 'xxxx', touchPointId: 'zzz', language: 'EN', extra: { isPreview: true } }); const inlineSurvey = new hcWebsiteTouchpoint.WindowSurvey(urlBuilder, { openNewWindow: true }); </script>