Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/form/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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;

Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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;

Expand Down
Loading