Bagisto Forum

    Bagisto

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

    How does bagisto implement Vee-Validate

    General Discussion
    2
    2
    375
    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.
    • U
      Uyo-obong last edited by

      Hi fam! I want to change the validation error message, I can't figure out how they implement it. this is what I mean
      Add-Attribute.png

      1 Reply Last reply Reply Quote 0
      • devansh-webkul
        devansh-webkul last edited by devansh-webkul

        Hi @Uyo-obong,

        We are using the vee-validate package. If you want to remove that field you need to check this documentation,

        https://vee-validate.logaretm.com/v2/guide/messages.html#field-specific-custom-messages

        I am giving you sample, this will help you, just go to the specific blade file where you want to change add this,

        const dict = {
            custom: {
                code: {
                    required: 'Something is required.'
                }
            }
        };
        

        After that, inside component's create or mount method add this,

        this.$validator.localize('en', dict);
        
        1 Reply Last reply Reply Quote 1
        • First post
          Last post