Re: HTML_QuickForm - enabling/disabling group-elements before displaying form
| From: | Alexey Borzov | Date: | Wed, 02 Jul 2003 13:25:02 +0000 |
| Subject: | Re: HTML_QuickForm - enabling/disabling group-elements before displaying form | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-6387@lists.php.net to get a copy of this message | ||
Hi!
Tommy Ipsen wrote:
but my problem is that when processing the form certain results/cases could change the behaviour in such a way that even though $action is 'modify' the create-buttons should be displayed!! I could move the button-group part of the code below the process-part but this somehow seems logically wrong I think. I would would rather like to enable/disable the two button groups from within the process function - is this possible!?How about adding two groups and then removing (via removeElement()) the one that is not needed?