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 validation: wrong error-position

    Framework
    2
    3
    348
    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.
    • K
      karacho last edited by

      Hi,
      my headline said it all. After submitting a q-form and getting an error, the focus is below the false field…
      How can i customize this? On the Picture: The first wrong field is above “Nachname”…
      P.S: the same if q-form is not in greedy-mode… - thus always below
      Thx - MarkScreenshot_2019-12-19 Anmeldung für Besucher.png

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

        Try putting refs on your inputs and call the focus() method for the top most field with the error?

        Scott

        1 Reply Last reply Reply Quote 0
        • K
          karacho last edited by

          Got it working this way… if someone knows: how do i get inputs with erros in an easy way?

          onValidationError () {
          this.$q.notify({
          color: ‘red-5’,
          textColor: ‘white’,
          icon: ‘warning’,
          message: ‘Errors…’
          })

            window.scrollTo(0, 0)
          },
          1 Reply Last reply Reply Quote 0
          • First post
            Last post