Validate vue Multi-select with yup
I am using the multi-select provided in the documentation for metronic 8. How to validate Multi-select option in vue with yup , i have already tried
but it is not validating it
Replies (3)
Hi Muhammad,
If you are using Vee-validate then you can validate multi-select input using the example below.
<Field name="businessType" v-slot="{ field }">
<Multiselect
v-bind="field"
:options="['Option1', 'Option2', 'Option3']"
></Multiselect>
</Field>
You can check Vee-validate official docs page: https://vee-validate.logaretm.com/v4/api/field
Regards,
Lauris Stepanovs,
Keenthemes Support Team
Thanks , it worked like a charm
Hi,
Glad to hear that. All the best with your project!
Regards,
Lauris Stepanovs,
Keenthemes Support Team
Your Support Matters!
We will highly appreciate your Metronic Review on Themeforest.
Please go to Themeforest Downloads page, select Metronic & leave your feedback.