[support] multiple buttons with same #value D5
    Ivan Sergio Borgonovo 
    mail at webthatworks.it
       
    Wed Mar 25 19:35:00 UTC 2009
    
    
  
On Wed, 25 Mar 2009 12:29:09 -0700
"Metzler, David" <metzlerd at evergreen.edu> wrote:
> A little known fact...  You can create containers in the forms
> array that have no visual representation in the form, kind of like
> fieldsets, but without the fieldset. 
> 
> While (...) {
>   $form[$id] = array('#tree' => TRUE); 
>   $form[$id]['qty'] = array(....); 
>   $form[$id]['add'] = array(....); 
> }
> 
> Might clean up some of the code you've discovered. 
> 
> I usually nest all the  rows into a single fieldset as well, but
> that's optional. 
No they were actual editable values.
Each row had a textfield (qty) and a button + a "superbutton" at the
end of the table.
Anyway problem was solved directly controlling the name attribute.
-- 
Ivan Sergio Borgonovo
http://www.webthatworks.it
    
    
More information about the support
mailing list