hey guys :)
i am using FormFu within the Catalyst MVC Framework. at this point i got
a FormFu conf in apache-style with this part:
...
<elements>
type Block
id rahmen
<element>
type Block
id summe_caption
tag div
content_xml <a>Auftragssumme:</a>
</element>
<elements>
id summe
type Text
size 40
name summe
<attributes>
autocomplete off
</attributes>
constraint SingleValue
</elements>
</elements>
...
so far so good, all elements are displayed and so on... but what if i
want to change the "content_xml" of the Block (div) with the id
"summe_caption"? get_field() only returns form-elements, get_element()
returns nothing with the given id.
in detail, i tried this:
my $summe_caption = $form->get_element({id => 'summe_caption'});
$summe_caption->content_xml('<a>foo:</a>');
but $summe_caption does not get an obj-ref by the get_element method.
the same with. Is ther a way to change the attribs of an type Block at
all or is it possible to insert a $var in the formfu-config, so that i
can simply change the formfu-output, for example for indiviual caption
of the form-fields, without using call-back subs?
thanks, lao :)
begin:vcard
fn:Christoph Metz
n:Metz;Christoph
adr;quoted-printable;quoted-printable:;;Pleicherkirchgasse 1;W=C3=BCrzburg;W=C3=BCrzburg;97070;Germany
email;internet:[EMAIL PROTECTED]
tel;home:+499314652733
tel;cell:+491607944967
note:ICQ: 415255102
x-mozilla-html:FALSE
url:http://www.cmgm.de
version:2.1
end:vcard
_______________________________________________
HTML-FormFu mailing list
[email protected]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu