Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Client side validation not working

    General Discussion
    2
    2
    372
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      ppstech last edited by

      Hello,
      I have added few fields in marketplace vendor registration form.
      But the client side validation is not working on the newly added fields, unless the fields get focus manually. This is my code

      <div class="control-group" :class="[errors.has('vendorid') ? 'has-error' : '']">
          <label for="vendorid" class="required">{{ __('shop::app.customer.signup-form.vendorid') }}</label>
          <input type="text" class="control" name="vendorid" v-validate="'required|numeric|max:10'" value="{{ old('vendorid') }}" data-vv-as="&quot;{{ __('marketplace::app.shop.sellers.account.profile.vendorid') }}&quot;" >
          <span class="control-error" v-if="errors.has('vendorid')">@{{ errors.first('vendorid') }}</span>
      </div>
      

      How to get this working?

      1 Reply Last reply Reply Quote 0
      • R
        rahul last edited by

        Hi @ppstech

        You will get validation errors upon losing focus and/or form submission.

        Thanks

        1 Reply Last reply Reply Quote 0
        • First post
          Last post