Start survey programmatically
tip
You can find the SURVEY_ID in the Manual section of the survey editor, or in the URL after /surveys/.

import { ScreebModule, ScreebService } from "@screeb/sdk-angular";
constructor(private screeb: ScreebService) {}
await this.screeb.surveyStart("<SURVEY_ID>", "", true);
Prevent multiple displays
await this.screeb.surveyStart("<SURVEY_ID>", "", false);
Hidden fields
await this.screeb.surveyStart("<SURVEY_ID>", "", true, {
color: "green",
article_id: 42,
});
Force language
await this.screeb.surveyStart("<SURVEY_ID>", "", true, {}, undefined, "en");
Close a survey
await this.screeb.surveyClose();