Skip to content

Commit 54f7f07

Browse files
committed
added title and description to demo form
1 parent 67e9556 commit 54f7f07

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

Diff for: db.kv-shm

0 Bytes
Binary file not shown.

Diff for: db.kv-wal

36.2 KB
Binary file not shown.

Diff for: src/routes/demo/demo_form.ts

+18-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { QuestionType } from '$lib/form';
44
// TODO: Add more questions to cover all question types.
55
export const demoForm: Form = {
66
id: 'demo_form_id',
7+
title: 'Demo form',
8+
description: 'testing for user side form features',
79
discordChannelID: '',
810
startDate: '',
911
endDate: null,
@@ -30,7 +32,11 @@ export const demoForm: Form = {
3032
content: 'please pick one',
3133
required: false,
3234
allowCustomChoice: false,
33-
choices: ['choice 1', 'choice 2', 'choice 3', 'choice 4']
35+
choices: [
36+
{ value: 'option 1', content: 'option 1' },
37+
{ value: 'option 2', content: 'option 2' },
38+
{ value: 'option 3', content: 'option 3' }
39+
]
3440
},
3541
{
3642
type: QuestionType.COLOR,
@@ -57,6 +63,17 @@ export const demoForm: Form = {
5763
maxLength: 1_000,
5864
placeholder: 'write here',
5965
value: ''
66+
},
67+
{
68+
type: QuestionType.SELECT,
69+
name: 'Select Question',
70+
content: 'select one',
71+
required: false,
72+
options: [
73+
{ value: 'option 1', content: 'option 1' },
74+
{ value: 'option 2', content: 'option 2' },
75+
{ value: 'option 3', content: 'option 3' }
76+
]
6077
}
6178
]
6279
}

0 commit comments

Comments
 (0)