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 » legacy support » symfony 1.1 » Symfony 1.2 doctrain (Check box issue)
Symfony 1.2 doctrain (Check box issue) [message #90184] Fri, 18 December 2009 10:26
hardik  is currently offline hardik
Messages: 9
Registered: December 2009
Location: Ahmedabad
Junior Member

Hi,,,, all
I have problem in checkbox (doctrine sf1.2). when i am click any record for edit .the default value is selected . on edit time checkbox is checked.
please help me ,,,,

i put code like this ....

$this->setWidgets(array(

'first_name' => new sfWidgetFormInput(array(),array('maxlength' => 30,'size' => 40)),

'last_name' => new sfWidgetFormInput(array(),array('maxlength' => 30,'size' => 40)),

'email' => new sfWidgetFormInput(array(),array('maxlength' => 30,'size' => 40)),

'business_type' => new sfWidgetFormInput(array(),array('maxlength' => 30,'size' => 40)),

'other_business' => new sfWidgetFormInput(array(),array('maxlength' => 30,'size' => 40)),

'company_name' => new sfWidgetFormInput(array(),array('maxlength' => 30,'size' => 40)),

'newsletter' => new sfWidgetFormInputCheckbox(array(), array('value'=>1)),

'heard_about_us' => new sfWidgetFormSelect(array('choices'=>self::$list)),

'enable' => new sfWidgetFormChoice(array('expanded' =>true,'choices' => array('0'=>'Yes','1'=> 'No'))),

'confirm' => new sfWidgetFormChoice(array('expanded' =>true,'choices' => array('0'=>'Yes','1'=> 'No'))),

));





//$this->setDefault('newsletter',false);

$this->setDefault('confirm','0');
Previous Topic:tasks within a module
Next Topic:Modify form widgetSchema in action
Goto Forum:
  

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