This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » symfony 1.3 and 1.4 » Validate/save an embedded form based on a value in the parent form
icon5.gif  Validate/save an embedded form based on a value in the parent form [message #103108] Mon, 26 July 2010 22:40
Messages: 9
Registered: July 2008
Location: Leeds, West Yorkshire, UK
Junior Member

I have a symfony 1.4 form with 2 embedded forms.

The parent form has a drop down which determines which of the embedded forms you fill in (hidden/shown on the frontend using JavaScript).

The problem is, when I submit the form, the validation and save is being run on both of the embedded forms, which I obviously don't want.

What is the best way to alter the parent form so that it only validates and saves the relevant embedded form based on the selection made in the parent form?

Previous Topic:How to create a link to this routing
Next Topic:sfForm::renderFormTag() problem
Goto Forum:

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software