Ask your Symfony questions! Pay money and get answers fast! (more info)


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:

$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:


I now have my form separated into multiple tabs with jQuery :) Again, thanks a lot to dustin10 for his help.

Updated: 04/05/11 4:22pm

Upvote / Downvote

3 groups of people are allowed to vote for discourse:

All votes are public.

You are not allowed to vote: