Written in response to Split up EmbedRelations in form by IDs:
I managed to solve this with the help from dustin10 on the #symfony IRC channel (irc.freenode.net).
We added a hidden field in my ProductPropertyForm with the SetID I was trying to retrieve in my form:
That way I could retrieve the value in my form with:
I now have my form separated into multiple tabs with jQuery :) Again, thanks a lot to dustin10 for his help.
We added a hidden field in my ProductPropertyForm with the SetID I was trying to retrieve in my form:
$this->setWidget('property_set_id', new sfWidgetFormInputHidden());
$this->setDefault('property_set_id', $this->getObject()->getProperty()->getSetId());
$this->setValidator('property_set_id', new sfValidatorString());That way I could retrieve the value in my form with:
$eForm['property_set_id']->getValue()I now have my form separated into multiple tabs with jQuery :) Again, thanks a lot to dustin10 for his help.
