http://cfwheels.org/docs/chapter/object-validation
:)
On Fri, Jul 23, 2010 at 2:25 PM, Randy Johnson <ra...@cfconcepts.com> wrote:
> Hello,
> I have a question about object validation.
> I have an order form where I want to do form validation, but I need to do
> the validation before I actually go save the item to the database.
> Is there a way for me to use the validate functions to do this or do I need
> to just create my own function in the model to do the initial validation?
> Here is what I have in the controller:
> <cfset order = model("order").new(params.order)>
> <cfset order.checkrequired()>
> check required is my model function where I plan on doing my validation and
> then adding my object errors so I can use my errormessagesfor() function in
> my view.
> Is this the right way to go about it?
> Thanks!
> Randy
>
> --
> You received this message because you are subscribed to the Google Groups
> "ColdFusion on Wheels" group.
> To post to this group, send email to cfwh...@googlegroups.com.
> To unsubscribe from this group, send email to
> cfwheels+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cfwheels?hl=en.
>
--
Josh
> To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.