2 Replies Latest reply on Mar 30, 2009 11:41 PM by Richard_Abbott

    "Suggestive" validators (suggestors?)

    istrasci Level 1
      Is there any way to do this? For example, I have a "signup" type form (name, email, address, hobbies, etc.)... Certain fields would be required and have their respective validators (name, email, phone)... But other fields (hobbies, homepage, etc.), I would like to recommend that the user fill them in before submitting the info, but it's OK if they don't... Is there any type of "suggestion validator" that can accomplish this, or do you just have to handle all the logic yourself...??? Or can you actually just do it with validators and I'm missing something obvious...??? Just wondering...
        • 1. Re: "Suggestive" validators (suggestors?)
          Peter Hahmann Level 1
          Istrasci,

          There is nothing like a "sugestion validator" in Flex framework. But as you said, you can validate those fields with your own logic. I would sugest you create your own "sugestion validator" class to use it in your project, sou it would be easier to handle. Depending on what you plan to do, you cold extend TextInput and create a flag, required or optional and create your own validator, which would handle each Field acording to its flag.

          (I personaly hate flex validators, i always create my own lib).

          I hope that my post was useful.

          Regards,
          Peter
          • 2. Re: "Suggestive" validators (suggestors?)
            Richard_Abbott Level 3
            istrasci,
            don't know if it helps but recently I asked about how to code auto-complete text entry boxes where some suggestions were shown after you typed a first character - see recent thread "Mimic browser prior-value suggestions for text input" for ideas offered by a couple of people.
            Although this was fairly specific to name-fields starting with a given letter sequence, I guess you could quite easily change the logic to offer some themed options.
            Richard