Hello Blair,
Please correct me if i'm wrong. >From what i have seen in the code i have to create a custom field type. Inside of it i have to create a function validate that it will be called. I was looking for something doable in custom type object[farcry/projects/*/packages/types.object.cfc]. if it's possible something like ftValidation="customFunction" on one field of type string and customFunction from the object to be called when validating the form. Kind regards, Bumbacea Alexandru On Thu, Jun 17, 2010 at 10:54 AM, Alexandru Bumbacea < [email protected]> wrote: > Thank you very much Blair for your assistance. this was what i was looking > for. > Kind regards, > Bumbacea Alexandru > > > > On Wed, Jun 16, 2010 at 10:07 AM, Blair McKenzie <[email protected]> wrote: > >> You can add a function to the type component called >> ftValidate[propertyname] which will get called when the form is submitted. >> Look at the formtools in core (/packages/formtools/) in the "validate" >> function to see what the arguments and return values should be. I believe >> that this function is typically passed stProperties or stObject, but you may >> have to test to be sure because I don't think the core formtools make it >> clear. That argument would have the values of the *other* properties in >> the submission. >> >> Blair >> >> >> >> On Wed, Jun 16, 2010 at 4:37 PM, Alexandru Bumbacea < >> [email protected]> wrote: >> >>> Hello Blair, >>> >>> I will need the server-side validation, but I have no idea what is the >>> best practice for this or where to place my code. I have seen somewhere code >>> placed in beforeSave(), so it wouldn't allow approval of the item, but i'm >>> looking something more refined. >>> >>> >>> Kind regards, >>> Bumbacea Alexandru >>> >>> >>> >>> On Wed, Jun 16, 2010 at 2:44 AM, Blair McKenzie <[email protected]>wrote: >>> >>>> You can use the ftWatch attribute on the property to have the field >>>> automatically refresh with ajax when other fields change. Alternatively you >>>> can override the server-side validation functionality to add your extra >>>> checks. Is either of those what need? >>>> >>>> Blair >>>> >>>> >>>> On Tue, Jun 15, 2010 at 11:32 PM, Alexandru Bumbacea < >>>> [email protected]> wrote: >>>> >>>>> Hello guys, >>>>> >>>>> >>>>> Recently i have encountered a new situation and i was wondering if >>>>> there is any "Advanced validation" for the auto-built forms.(like one >>>>> input >>>>> to be the sum or average of other two). If you could provide an example I >>>>> apreciate. :) >>>>> >>>>> >>>>> >>>>> Kind regards, >>>>> Bumbacea Alexandru >>>>> >>>>> -- >>>>> You received this message cos you are subscribed to "farcry-dev" Google >>>>> group. >>>>> To post, email: [email protected] >>>>> To unsubscribe, email: >>>>> [email protected]<farcry-dev%[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]<farcry-dev%[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]<farcry-dev%[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]<farcry-dev%[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
