In the controller action for this view: $this->request->data['Biddetail']['bid_id'] = "some value or variable";
2013/2/25 April DeRossett <[email protected]> > is there a way to pre-populate forms? here is what I have in my view: > > <?php echo $this->Form->create('Biddetail'); ?> > <fieldset> > <legend><?php echo __('Add Biddetail'); ?></legend> > <?php > * echo $this->Form->input('bid_id');* *I want to pre-fill this > field* > echo $this->Form->input('Property_Owner'); > echo $this->Form->input('Opening_Date'); > echo $this->Form->input('Propery_Address'); > echo $this->Form->input('Property_City'); > echo $this->Form->input('Property_State'); > echo $this->Form->input('Property_Zip'); > echo $this->Form->input('Property_County'); > echo $this->Form->input('Control_Map'); > echo $this->Form->input('Parcel'); > echo $this->Form->input('Open_Date'); > echo $this->Form->input('Open_Time'); > echo $this->Form->input('Bid_Location'); > echo $this->Form->input('Performance_Bond'); > echo $this->Form->input('Contract_Signing'); > echo $this->Form->input('Entry_Date'); > echo $this->Form->input('Sold'); > echo $this->Form->input('Board_Foot_Hardwood_Sawtimber'); > echo $this->Form->input('Hardwood_Pulpwood_Tons'); > echo $this->Form->input('Pine_Sawtimber_Tons'); > echo $this->Form->input('Pine_Pulpwood_Tons'); > ?> > </fieldset> > <?php echo $this->Form->end(__('Submit')); ?> > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/cake-php?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
