Long story, but I would like to add a form element -- it might as well be '
hidden' -- set its value and manually mark it as valid before calling
validate so that this element name/value will be in the $context that a
validator requires. I would rather not render this element along with the
rest of the form because it's basically none of the end user's business.

if ($this->getRequest()->isPost()) {
$personForm->person_type_id->setValue(1);


-- 
Support real health care reform:
http://phimg.org/

--
David Mintz
http://davidmintz.org/

Reply via email to