Thanks Brian. I haven't had much trouble adding that sort of
validation, but I ran into some issues and questions when I added an
actual validate function that's supposed to do some custom validation.
Specifically, in my case, I'm checking if certain taxons had been
added to the new product. It looks like the validate code is actually
being hit, and the error flash message is showing up when it is, is
there also a way to associate these checks with specific fields in my
form?
The specific setup I have is a list of Product Categories, stored
internally as taxons, are presented to the user as a dropdown list
when creating a new product. By default, the dropdown is selecting an
empty option, so they have to go in and pick one. If they don't, I
want to be able to catch this error in my validation (by noting that
no taxon from the Categories taxonomy had been assigned to my new
product), flag it, send the user back to that same page with a flash
error, and highlight the dropdown control telling them that they need
to make a selection. At this point, I think I've been able to
accomplish most of that, except for highlighting the dropdown field...
Thanks!
Alex
> > To post to this group, send email to
spree...@googlegroups.com (mailto:
spree...@googlegroups.com).
> > To unsubscribe from this group, send email to
spree-user+...@googlegroups.com (mailto:
spree-user+...@googlegroups.com).