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

    Q-Form and validation state

    Framework
    3
    4
    1205
    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.
    • DDP
      DDP last edited by

      I’m porting some old code written in Element-UI to Quasar, I noticed that in q-form there’s no @validate emit event called everytime a check is made.

      I don’t want to use any external validator (like vuelidate or veevalidate), so I’m thinking an easy way to check the form status, the goal is to enable/disable some feature in the page without pressing the “validate” button.

      I tried with @change on qform to call .validate() but this method triggers every components validation.
      I know that I can check for every @blur, but I prefer something cleaner.

      Any clue?

      1 Reply Last reply Reply Quote 1
      • s.molinari
        s.molinari last edited by

        It’s currently a guess on my part, but QForm has @validation-success and @validation-error. I’m thinking you could use those to get your overall logic working?

        Scott

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

          I already saw @validation-success and error, but they are triggered only after a validate(), so it’s the same.
          I know that some of this logic is similar to $anydirty/$anyerror provided by vuelidate, but I think we can do this also with quasar without external addon

          1 Reply Last reply Reply Quote 0
          • L
            lakshmi last edited by

            @DDP facing same scenario where i need to disable/enable button on validate() for form. Any approach that worked?

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