Re: HTML_QuickForm - enabling/disabling group-elements before
| From: | Tommy Ipsen | Date: | Wed, 02 Jul 2003 18:49:01 +0000 |
| Subject: | Re: HTML_QuickForm - enabling/disabling group-elements before | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-6402@lists.php.net to get a copy of this message | ||
Alexey Borzov wrote:
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? Thanks - I got it to work once I remembered to name the group as well :-)