Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vuelidate required if another props

elements: {
            $each: {
              type: {
                required,
              },
              question: {
                required: requiredIf(prop => prop.type === 'input'),
              }
            }
          }
 
PREVIOUS NEXT
Tagged: #vuelidate #required #props
ADD COMMENT
Topic
Name
1+7 =