[eluser]Flying Fish[/eluser]
I'm building a form that user's input information that they want on different promo items like postcards, flyers etc.
Right now I have it set up so that there is one method in my order controller 'order/add_info'
This loads a view that will display the order form
I was going to have the view check the URI and display different form fields based on what URI segments were there
controller 'order' method 'add_info' argument 1 type of item 'flyer' argument 2 design 'classic'
for example
'order/add_info/flyer/classic'
would display a form with say 10 fields
but
'order/add_info/postcard/summer_fun'
would display a form with 4 fields
I have validation rules set up in a config file for 'order/add_info'
when I submit a form from the url 'order/add_info' all the validation works great
but if I submit a form from any url with segments like 'order/add_info/flyer/classic' the validation errors do not show up
is there a way to get form validation to work even with different uri segments? I really want to use the same validation rules for each item since the field names are all the same, it's just some items don't have as many fields as others
or am I just going about things the wrong way?
I'll attach the view file to this post any help would be appreciated. Thanks!