Ron, You can create a ftValidateKeyword method (assuming your field name is "keyword") and FarCry will execute it.
Check out /core/packages/types/farUser.cfc you can see that they built an ftValidateUserID method to validate the userID. Your method would use the same areguments, returntype, etc. OR You can create your own formtool type, say "keywordList". You would create a keywordlist.cfc in your /project/packages/formtools folder then for your "keyword" field use a ftType="keywordlist". You can look at any of the other formtool CFCs for examples of how to construct your edit, display, validate and any other methods. Sean On Aug 12, 4:36 pm, Ron Mast <[email protected]> wrote: > When editing a content type field (Keyword) type longchar. The entry > is comma delimited...but I want to avoid duplicate words making this > example an invalid entry: "farcry, is, awesome, farcry, rules". > Because farcry is used twice I would like to not allow this to save. > > I wanted to ask the group before I start reading through the > documentation and writing code. Has anyone done this? Perhaps farcry > already can validate this? > > Thank you for understanding my newbie status! :) -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry
