From d5bbbd1c30f669a831962e597bb4ef2f39010d3f Mon Sep 17 00:00:00 2001 From: EthelHsiao Date: Mon, 18 May 2026 16:06:46 +0800 Subject: [PATCH] docs: add sendResponseEmail?: boolean to FormRequest --- src/form/models.tsp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/form/models.tsp b/src/form/models.tsp index 76833da6..fec33c59 100644 --- a/src/form/models.tsp +++ b/src/form/models.tsp @@ -18,6 +18,7 @@ namespace CoreSystem.Forms { title: "Enter SDC Form", description: #{ type: "doc", content: #[#{ type: "paragraph", content: #[#{ type: "text", text: "If you want to join us, just fill in this form!" }] }] }, messageAfterSubmission: "Thank you for your submission!", + sendResponseEmail: true, visibility: FormVisibility.public, }) model FormRequest { @@ -39,6 +40,9 @@ namespace CoreSystem.Forms { @doc("The message to show after user's submission.") messageAfterSubmission?: string; + @doc("Whether to send a copy of the submitted response to the respondent by email. If omitted, the backend defaults to false.") + sendResponseEmail?: boolean; + @doc("The dressing of the form.") dressing?: FormDressing; @@ -86,6 +90,7 @@ namespace CoreSystem.Forms { deadline: utcDateTime.fromISO("2025-03-31T23:59:59Z"), publishTime: utcDateTime.fromISO("2025-02-01T00:00:00Z"), messageAfterSubmission: "Thank you for your application! We'll get back to you soon.", + sendResponseEmail: true, dressing: #{ color: "#0066cc", headerFont: "LINESeedTW", questionFont: "LINESeedTW", textFont: "LINESeedTW" }, coverImage: "https://placehold.co/1800x600/0066cc/white.webp?text=SDC+2025+Recruitment", googleSheetUrl: "https://docs.google.com/spreadsheets/d/1ABC123/edit", @@ -130,6 +135,9 @@ namespace CoreSystem.Forms { @doc("The message to show after user's submission.") messageAfterSubmission: string; + @doc("Whether this form sends a copy of the submitted response to the respondent by email.") + sendResponseEmail: boolean; + @doc("The dressing of the form.") dressing?: FormDressing;