After some investigation, it looks like the UUID.cfc formtool does have a validation method and its seems to correctly return a failed response when ftValidation='required' however for some reason the form still passes as valid.
Regards Matthew On Monday, May 20, 2013 5:11:19 PM UTC+9:30, Matthew Attanasio wrote: > > Hello Blair and Geoff > > Think I may have have caused a bit of confusion, I meant a custom content > type. > > Yeah that's what I thought as well for a UUID, looking at the docs there > is no specific validation option for a required UUID so I assumed that > simply adding ftValidation="required" would be enough to enable simple > validation on that property type. Guess this isnt the case at the moment.... > > > On Monday, May 20, 2013 4:36:33 PM UTC+9:30, Geoff Bowers wrote: >> >> Do you mean custom formtool or custom content type? >> >> fttype="UUID" should already have a required validation option. If it >> doesn't we should address that as a bug on the UUID formtool. >> >> GB >> >> >> On 20 May 2013 16:25, Matthew Attanasio <[email protected]>wrote: >> >>> Hello All. >>> >>> I have built a custom formtool that has a property assigned as UUID and >>> would like to add validation to the property so that the user has to pick >>> an object before they can save it in farcry. I have added the >>> required="true" and ftValidation="required" to the property but I am able >>> to create an object and save it with out having to add an uuid to that >>> property. >>> >>> Here is an example of what I have now, I have changed the name, ftJoin >>> and ftLabel fields >>> >>> <cfproperty name="testProperty" type="uuid" ftSeq="2" ftFieldset="General >>> Details" ftWizardStep="General Details" ftLabel="Test Label" required= >>> "true" ftJoin="testObject" ftHint="" ftvalidation="required"> >>> >>> Is this even possible in farcry at the moment to do? >>> >>> Regards Matthew. >>> >>> -- >>> 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 because you are subscribed to the Google >>> Groups "farcry-dev" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> -- 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 because you are subscribed to the Google Groups "farcry-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
