Re: Quickform addGroup() -> removeGroup() ? like addElement() and removeElement()?

From: Date: Fri, 16 Jan 2004 00:09:06 +0000
Subject: Re: Quickform addGroup() -> removeGroup() ? like addElement() and removeElement()?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-10172@lists.php.net to get a copy of this message
I'd like to show the form again when it is validated but without the buttons. Is it possible to remove groups from the form? Removing an element works.
Reading the QuickForm source it seems to me that groups are added also as any other quickform elements. This means you can remove a group using removeElement, passing the group name as a parameter. According to your example element names: $form->removeElement('actions');

« previous php.pear.general (#10172) next »