I'm facing an issue with resetting the fields in my form.
The form allows users to add more forms, and so on...
Upon successful validation, I want to save the data in my DB and store AND reset all input fields in the form. Unfortunately, I'm unable to do this last part.
I've experimented with various solutions but none have worked so far.
This is the code I'm using:
<div v-for="(question, index) in questionsSignaletiques" :key="index" class="blockQuestion" >
<!--form to add questions : one form per question, each form has a different name in the ref -->
<a-form-model
layout="inline"
:ref="'p' + index"
>
// Code continues...
Javascript code :
// JavaScript code here
Thank you for your assistance!