feat(form): add submission link webhook placeholder

This commit is contained in:
2026-07-28 19:58:36 +07:00 Unverified
parent fa35f00f38
commit 2ac971bb6e
5 changed files with 37 additions and 4 deletions
+4 -4
View File
@@ -336,10 +336,10 @@ export default function FormExtraClient({ form }: FormExtraClientProps) {
className="min-h-24"
/>
<p className="text-sm text-muted-foreground">
Use <code>{`{1}`}</code>, <code>{`{2}`}</code> to insert answers according to question order, and <code>{`{username}`}</code>, <code>{`{displayname}`}</code>, <code>{`{id}`}</code> for user info.
Use <code>{`{1}`}</code>, <code>{`{2}`}</code> to insert answers according to question order, <code>{`{link}`}</code> for the admin result link, and <code>{`{username}`}</code>, <code>{`{displayname}`}</code>, <code>{`{id}`}</code> for user info.
</p>
<div className="flex flex-wrap gap-2">
{["username", "displayname", "id", "1", "2"].map((variable) => (
{["username", "displayname", "id", "link", "1", "2"].map((variable) => (
<Button
key={variable}
type="button"
@@ -368,10 +368,10 @@ export default function FormExtraClient({ form }: FormExtraClientProps) {
className="min-h-24"
/>
<p className="text-sm text-muted-foreground">
Used when a user updates their existing submission. Use <code>{`{1}`}</code>, <code>{`{2}`}</code> for answers, <code>{`{update}`}</code> to show what was changed, and <code>{`{username}`}</code>, <code>{`{displayname}`}</code>, <code>{`{id}`}</code> for user info.
Used when a user updates their existing submission. Use <code>{`{1}`}</code>, <code>{`{2}`}</code> for answers, <code>{`{update}`}</code> to show what was changed, <code>{`{link}`}</code> for the admin result link, and <code>{`{username}`}</code>, <code>{`{displayname}`}</code>, <code>{`{id}`}</code> for user info.
</p>
<div className="flex flex-wrap gap-2">
{["username", "displayname", "id", "update", "1", "2"].map((variable) => (
{["username", "displayname", "id", "link", "update", "1", "2"].map((variable) => (
<Button
key={variable}
type="button"