[development] $form #tree issue

Alessandro Feijó patrao at legendas.feijo.info
Tue Jan 15 16:56:36 UTC 2008


Not quite that

I have dynamic fields inserted through jQuery, not via loop in PHP.  So, I 
need array

My form its been builted with index ( criteria[1][value[]] ) (note digit 1), 
my jQuery will clone that, the new field will be equal.

In theory, should work, because the value[] has no index, but strangly the 
array returned within $form_values does not have all my content :(


Feijó


----- Original Message ----- 
From: "Brad Bowman" <brad at atendesigngroup.com>
To: <development at drupal.org>
Sent: Tuesday, January 15, 2008 1:56 PM
Subject: Re: [development] $form #tree issue


> This: http://jeff.viapositiva.net/drupal/dynamic-forms article written
> by Jeff Eaton is a good reference for dynamically adding form
> elements. The basic idea is that your hook_form() function needs to
> check the $_REQUEST array to determine how many values are coming
> back, and create the appropriate form elements for them.
>
> -Brad



More information about the development mailing list