|
[symfony-users] Re: Hidden sfWidgetFormPropelChoiceMany: msg#00910symfony-users
? do you use $form->render() ? if yes, just check the documentation (forms for web designers). I didn't mean to add the class in the form code but in the template code $form['myWidget']->render( .... 'class' => 'hidden') Don't forget to add other hidden fields in the template. If I'm wrong, please, give your code, (form and template), it'll be easier. On Jul 31, 4:34 pm, HAUSa <jeroen_heeft_behoefte_aan_r...@xxxxxxxxxxx> wrote: > My idea too, but helas the class is put in the <li> and <input> tag. > Then still an empty <tr> and the empty label ("Select your options:") > remain visible... > > On 31 jul, 11:59, François CONSTANT <Francois.Const...@xxxxxxxxx> > wrote: > > > It may be a stupid idea but what about adding a class on it and hide > > it thanks to CSS? > > > On Jul 31, 10:01 am, HAUSa > > > <jeroen_heeft_behoefte_aan_r...@xxxxxxxxxxx> wrote: > > > For some usercredentials I want to hide a > > > sfWidgetFormPropelChoiceMany. But, it must still be in the form > > > because the values have to be put in the database. > > > > Now, normally you make a hidden form field. But, ofcourse, it is a > > > propelchoiceMANY, I need to be able to give it multiple values. > > > > My question is: how can I make a sfWidgetFormPropelChoiceMany which is > > > hidden? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@xxxxxxxxxxxxxxxx To unsubscribe from this group, send email to symfony-users+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
|
|
||||||||||||||||||||||||||
| News | Mail Home | sitemap | FAQ | advertise |