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

    How to add validation error for a q-checkbox?

    Framework
    faq-ui
    3
    5
    2265
    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.
    • M
      Mx last edited by s.molinari

      On the registration form, I have checkbox “I agree with Terms & Conditions”
      How can I set an error message if the user forgot to set this checkbox?
      In q-input, we have “rules” for that.
      What is the correct way to checkbox validation ?

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

        @Mx - Wrap it in a QField.

        https://codepen.io/smolinari/pen/NWKMrgr?editors=1010

        Scott

        1 Reply Last reply Reply Quote 1
        • M
          Mx last edited by

          Thank you.

          1 Reply Last reply Reply Quote 0
          • Allan-EN-GB
            Allan-EN-GB Admin last edited by

            @s-molinari I think that’d be a nice addition to the docs.

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

              I’ve added it to the FAQ list for now.

              Scott

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