Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Passing DO Id to form action

Go to End



Community Member, 6 Posts

11 January 2012 at 12:46am

i have this codes:

my edit url is =
when i click save i should get the id in edit_save method but dont know how.

i tryed also writing the ID into an hiddenfield but its also not working.

 public function getFrontEndFields(){
    	$fields = $this->scaffoldFormFields(array(
    		'restrictFields' => array(
    	return $fields;

public function getCMSFields()
        $fields = parent::getCMSFields();  
    	$fields->addFieldToTab('Root.Main', new HiddenField('ID','','editid'));
        $fields->addFieldToTab("Root.Main", new TextField('Name'));  
        $fields->addFieldToTab("Root.Main", new TextareaField('Description'));
       // $fields->removeFieldFromTab('Root.Main', 'MarketPageID');
        return $fields;

anyone any idea how to to this?