feat: open ended questions

This commit is contained in:
Jannat Patel
2024-10-07 21:18:42 +05:30
parent fc81f1aa26
commit 6d41e4e552
22 changed files with 552 additions and 221 deletions

View File

@@ -54,7 +54,7 @@
:label="__('Type')"
v-model="question.type"
type="select"
:options="['Choices', 'User Input']"
:options="['Choices', 'User Input', 'Open Ended']"
class="pb-2"
/>
<div v-if="question.type == 'Choices'" class="divide-y border-t">
@@ -74,7 +74,11 @@
/>
</div>
</div>
<div v-else v-for="n in 4" class="space-y-2">
<div
v-else-if="question.type == 'User Input'"
v-for="n in 4"
class="space-y-2"
>
<FormControl
:label="__('Possibility') + ' ' + n"
v-model="question[`possibility_${n}`]"