I'm using the vue-form-generator library to create a form.
The problem is my form has 116 questions on it and I would like to collapse some questions, making the form more manageable for users.
My form has five sections. So each question in my form has the section attribute in the schema. However, the section part is not a form field such as label that you can modify. The sections are automatically generated into headings for you.
Apart from creating custom form fields, is there any way to make these sections collapse-able?
One route that I was thinking of trying would be to split my form into five forms, which will allow me to place a vue-bootstrap collapse element around each form. Something like:
<b-collapse id="collapse1" class="mt-2">
<vue-form-generator :schema="survey.schema" :options="survey.formOptions" :model="survey.model"></vue-form-generator>
</b-collapse>
But this would then again make submission of the form more difficult, since I would have to splice the results of all five forms.
Is there any easier solution to this problem?