[development] $form #tree issue
Alessandro Feijó
patrao at legendas.feijo.info
Tue Jan 15 18:20:50 UTC 2008
Are you sure?? :)
I belive I just solve the mistery
I do not need #tree at all!! Just removed it, and now all my cloned fields
are returning they content properly!!!!
Time to test, progress my code, and later this week I will document my
solution and publish somewere...
Feijó
----- Original Message -----
From: "Maciek Iwanowski" <maciek.iwanowski at glasspartnership.co.uk>
To: <development at drupal.org>
Sent: Tuesday, January 15, 2008 3:52 PM
Subject: Re: [development] $form #tree issue
But you can't manipulate HTML only. All HTML changes need to be mirrored in
form generating function in PHP.
MI.
-----Original Message-----
From: development-bounces at drupal.org [mailto:development-bounces at drupal.org]
On Behalf Of Alessandro Feijó
Sent: 15 January 2008 17:49
To: development at drupal.org
Subject: Re: [development] $form #tree issue
Wont work, a solution should be manipulate the cloned HTML and change the
index to the next avaiable, but it would be a PITA :)
Can I build a FORM without that index that Drupal set??
Feijó
----- Original Message -----
From: "Maciek Iwanowski" <maciek.iwanowski at glasspartnership.co.uk>
To: <development at drupal.org>
Sent: Tuesday, January 15, 2008 3:39 PM
Subject: Re: [development] $form #tree issue
Maybe you can try to add another field indicating number of cloned fields?
MI.
-----Original Message-----
From: development-bounces at drupal.org [mailto:development-bounces at drupal.org]
On Behalf Of Alessandro Feijó
Sent: 15 January 2008 16:57
To: development at drupal.org; brad at atendesigngroup.com
Subject: Re: [development] $form #tree issue
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ó
More information about the development
mailing list