Home > Adobe Flex > Flex: Validating a checkbox using StringValidator

Flex: Validating a checkbox using StringValidator

Thought this might help someone. I had a small task to add validation for a “terms and conditions” checkbox for a work project today and after researching a couple of ways to do that (easily), I found this clever trick.

Use the built-in Flex mx:StringValidator!

By pointing to the selected property of the checkbox component, then validating the length of its string value you can effectively validate a checkbox field without having to extend Validator and create your own customized component.

	requiredFieldError="You must agree to the Terms and Conditions." 
	tooLongError="You must agree to the Terms and Conditions."/>


Categories: Adobe Flex Tags:
  1. March 30th, 2014 at 00:33 | #1

    I’ve read a few just right stuff here. Certainly value bookmarking for revisiting.
    I wonder how much attempt you place to create one of these fantastic
    informative website.

  2. April 13th, 2014 at 06:17 | #2

    Amazing blog! Do you have any helpful hints for aspiring writers?
    I’m planning to start my own site soon but I’m a little lost
    on everything. Would you propose starting
    with a free platform like WordPress or go for a paid option?
    There are so many choices out there that I’m totally confused ..
    Any suggestions? Appreciate it!

  3. May 7th, 2014 at 11:21 | #3

    Also, you should ask them to bring a copy of their license
    or certification along. The right company for these services has mobile
    vehicles that are equipped with all tools and machinery required to solve your unique situation.
    Moreover, he deaigns and creates a unique master key
    for establishments or ccompanies like banks, jewelry shop and malls for
    safety from unaujthorized personnel.

  4. May 22nd, 2014 at 18:43 | #4

    May I just say what a comfort to uncover a person that truly knows what they are discussing onn
    the web. You actually realize how tto brinjg a problem to
    light and make it important. More people should read this
    and understand this side of your story. I was surprised
    you are not more popular because you most certainly possess the gift.

  5. July 21st, 2014 at 05:32 | #5

    Leonel Messi is naturally another essential element for
    the record breaking success of the last couple of seasons. last hitting with the champion you want to improve with.
    The middle lane’s role is to provide high damage in the form of ability power
    or AP.

  6. July 22nd, 2014 at 13:16 | #6

    Closing the last half mile to Bay Shore, the “Lauren Kristy” swallowed gulps
    of the now oily-black water with its bow, seeming
    caught in a sea-and-sky void presently pierced by the pinpoints of light defining the approaching coast ahead and the 7.

    For holes, you cover the area with the wallboard tape and then spackle to
    make the tape stick. Most of the email questions I sent to online battery shops netted me sales pitch calls and emails.

  7. July 22nd, 2014 at 16:06 | #7

    Many times you might find great articles online to
    get more information. It’s where your intention is good
    but you actually try too hard to keep your wife happy. In our article Fundraising campaigns for nonprofits,
    we discuss many methods nonprofits can incorporate this in their fundraising and marketing campaigns.

    Those engaged in social media marketing campaigns will
    be able to monitor channels for any mention of their company, competitors, industry,
    clients and potential clients. It’s about being
    a great customer service company that delivers parcels, as opposed to
    a parcel company that does customer service when it *has* to.
    Fb also has the tools that you need to use to effectively market your services in addition to your
    website. I contact each and every person who contacted me for a free consultation. While planning a holiday, choosing the right kind
    of accommodation is of utmost importance.
    If you choose to search the internet for solid information that tells how to use social media then you spend time.
    Examining changes on the sentiment around your brand caused by Social Media can also
    be a helpful measure of the value of social media.

  8. July 22nd, 2014 at 23:04 | #8

    Yes, fashion trends are referential and recurring, but at the same time new ones
    pop up, allowing us to visually reflect the world around
    us. Dress up in peacock blue, soft pinks and bright orange sexiest colours of
    this season. Fortunately, in this day and age of the Internet and the
    increasingly diverse global fashion market, you certainly don’t need to go all the way to
    Japan to get the very latest in Japanese fashion.

  9. August 6th, 2014 at 06:55 | #9

    Me disculpo ρor mi mala escritura, creo ԛue es una pieza informativa
    de su escritura. Bueno, үo habitar sufriendo al tner una gran cantidad
    Ԁe dificultades en еsta condición, falto incautacióneste blog mе ayuda

  10. November 15th, 2014 at 12:09 | #10

    Thanks for another wonderful post. The place else may just anybody get
    that kind of info in such an ideal approach of writing?
    I’ve a presentation subsequent week, and I am at the look for such information.

  11. June 24th, 2015 at 18:39 | #11

    The trikes are colourful, sturdy and built to last, with a variety of models, frames, wheels, handlebars, seats and accessories.

  12. July 1st, 2015 at 12:25 | #12

    The Franco-German model uses air ambulance as a
    support for ground-based Medical Teams.

  13. June 22nd, 2020 at 05:12 | #13

    Wow, great blog article.Really looking forward to read more. Want more.

  14. July 8th, 2020 at 10:52 | #14

    interesting page I noticed a website today and found a really worthwhile point of view

  15. July 19th, 2020 at 11:36 | #15

    Say, you got a nice article post.Much thanks again. Great.

  16. July 26th, 2020 at 23:30 | #16

    What as Going down i am new to this, I stumbled upon this I ave found It absolutely useful and it has aided me out loads. I am hoping to contribute & help other customers like its helped me. Good job.

  17. July 26th, 2020 at 23:46 | #17

    Im thankful for the blog article.Really looking forward to read more. Keep writing.

  18. August 6th, 2020 at 09:11 | #18

    I truly appreciate this article.Really looking forward to read more. Really Cool.

  19. September 14th, 2020 at 06:21 | #19

    Of course, what a fantastic blog and illuminating posts, I definitely will bookmark your blog.Have an awsome day!

  1. No trackbacks yet.