No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

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

    Quasar Email Internal Validation

    Help
    3
    5
    597
    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.
    • J
      jarvilito last edited by

      hi peeps!
      Just want to ask if there is any email internal validation that quasar provided? I didnt find any example of email validation except for vuelidate. Which is im trying to avoid using. Thanks!

      metalsadman 1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman @jarvilito last edited by

        @jarvilito there isn’t i think, you can make a function that you can use in your rules prop. there should be many examples out there.

        J 1 Reply Last reply Reply Quote 0
        • J
          jarvilito @metalsadman last edited by jarvilito

          @metalsadman Thanks man, i ended up using Vuelidate, its easy to use too and has a ton of functions. If anyone having a difficulty too on how to use vulidate on quasar this link will help you. Just dont forget to include the vuelidate in boot on quasar conf

          metalsadman 1 Reply Last reply Reply Quote 0
          • metalsadman
            metalsadman @jarvilito last edited by

            @jarvilito i use vuelidate too, since model based validation is what i need in most of my projects.

            1 Reply Last reply Reply Quote 0
            • mboeni
              mboeni last edited by mboeni

              If you don’t need it too fancy…I’m doing a bit of regex in my utility lib to achieve this:

              export function validateEmail (email) {
                var reg = /^([A-Za-z0-9_\-.+])+@([A-Za-z0-9_\-.])+\.([A-Za-z]{2,})$/
                if (!reg.test(email)) return false
                return true
              }
              

              🙂

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