@@ -4,6 +4,8 @@ import { QuestionType } from '$lib/form';
4
4
// TODO: Add more questions to cover all question types.
5
5
export const demoForm : Form = {
6
6
id : 'demo_form_id' ,
7
+ title : 'Demo form' ,
8
+ description : 'testing for user side form features' ,
7
9
discordChannelID : '' ,
8
10
startDate : '' ,
9
11
endDate : null ,
@@ -30,7 +32,11 @@ export const demoForm: Form = {
30
32
content : 'please pick one' ,
31
33
required : false ,
32
34
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
+ ]
34
40
} ,
35
41
{
36
42
type : QuestionType . COLOR ,
@@ -57,6 +63,17 @@ export const demoForm: Form = {
57
63
maxLength : 1_000 ,
58
64
placeholder : 'write here' ,
59
65
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
+ ]
60
77
}
61
78
]
62
79
}
0 commit comments