MCPcopy
hub / github.com/formbricks/formbricks / SurveyQuestion

Interface SurveyQuestion

packages/database/src/seed.ts:38–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 | "contactInfo";
37
38interface SurveyQuestion {
39 id: string;
40 type: SurveyElementType;
41 headline: { default: string; [key: string]: string };
42 subheader?: { default: string; [key: string]: string };
43 required?: boolean;
44 placeholder?: { default: string; [key: string]: string };
45 longAnswer?: boolean;
46 choices?: { id: string; label: { default: string }; imageUrl?: string }[];
47 lowerLabel?: { default: string };
48 upperLabel?: { default: string };
49 buttonLabel?: { default: string };
50 buttonUrl?: string;
51 buttonExternal?: boolean;
52 dismissButtonLabel?: { default: string };
53 ctaButtonLabel?: { default: string };
54 scale?: string;
55 range?: number;
56 label?: { default: string };
57 allowMulti?: boolean;
58 format?: string;
59 rows?: { id: string; label: { default: string } }[];
60 columns?: { id: string; label: { default: string } }[];
61 addressLine1?: { show: boolean; required: boolean; placeholder: { default: string } };
62 addressLine2?: { show: boolean; required: boolean; placeholder: { default: string } };
63 city?: { show: boolean; required: boolean; placeholder: { default: string } };
64 state?: { show: boolean; required: boolean; placeholder: { default: string } };
65 zip?: { show: boolean; required: boolean; placeholder: { default: string } };
66 country?: { show: boolean; required: boolean; placeholder: { default: string } };
67 firstName?: { show: boolean; required: boolean; placeholder: { default: string } };
68 lastName?: { show: boolean; required: boolean; placeholder: { default: string } };
69 email?: { show: boolean; required: boolean; placeholder: { default: string } };
70 phone?: { show: boolean; required: boolean; placeholder: { default: string } };
71 company?: { show: boolean; required: boolean; placeholder: { default: string } };
72 allowMultipleFiles?: boolean;
73 maxSizeInMB?: number;
74}
75
76async function deleteData(): Promise<void> {
77 logger.info("Clearing existing data...");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected