Shawn I'm trying the ftValidateKeywords method. Keywords is the field name.

Looking at the farUser.cfc example. I did a selected resources search
trying to find how the ftValidateUserID function is getting invoked so
I can get a better understanding. I didn't find anything.

I created the ftValidateKeywords in mysite/packages/types/course.cfc

I am at loss of how to now use my ftValidateKeywords function.

Thanks!


On Fri, Aug 13, 2010 at 6:37 AM, Sean Coyne <[email protected]> wrote:
> 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

-- 
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

Reply via email to