QInput Conditional Validation, Help Please #9152
-
I'm looping through a series of items to create a series of Q-inputs. Upon completion, the submit action for these Q-inputs will trigger an API call containing the input values as data. I need validation on each input, except for one. So my code will look something like this:
The relevant part here is looping through the items in 'itemarray' to create the inputs, and then validating each of them EXCEPT in the case of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Try ternary |
Beta Was this translation helpful? Give feedback.
Try ternary
:rules="someCondition ? [...validators] : undefined"
.