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
<Multiselect v-model="productDetails.product_types.value"
v-bind="productDetails.product_types"
placeholder="Select Product Type"
:required="true"
></Multiselect>
but it is not validating it
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>
Thanks , it worked like a charm
Hi,
Glad to hear that. All the best with your project!
Regards,
Lauris Stepanovs,
Keenthemes Support Team