Relative Content

Tag Archive for validationvuejs3vuetify.js

Prepopulating v-date-picker programatically with validation

I have a v-data-picker that the selected value will fill in a v-text-field and display a cleaner formatted date that was chosen. The issue is I sometimes pre-populate this date from other aspects of my application. This is working great but when doing this programmatically the validation rule I have setup is not triggering the validation. If I manually select the date the validation triggers and if its valid my form can move to next step. My form is as follows:

How to ensure all items in a v-combobox follow rule

I have a v-combobox which allows the user to select from a list of email addresses or add new ones that arent in the list. The issue is the rule does not apply to all items in the list. So if there is a new item added that the email is not valid but there is a valid entry already then it fails. I need the validation rules to check every item in the array. This is what I had tried: