[Catalyst] CC::FormBuilder woes
RA Jones
ra.jones at dpw.clara.co.uk
Fri Apr 27 13:46:30 GMT 2007
Apologies if this not the right forum for this (but if not, where else
?). According to the FormBuilder docs, the following code in my template
should (and does) work:
[% FOREACH field IN form.fields %]
<td>[% field.label %]</td>
<td>[% field.field%]</td>
[% END %]
But so should this (and doesn't):
<td>[% form.field.location.label %]</td>
<td>[% form.field.location.field%]</td>
'location' is a valid field_name. Dumper.dump(form.field.location) is
empty (as is every other form.field.legal_field_name).
According to the FormBuilder docs that is how to access individual
fields if requiring finer control in the template than is provided by
FormBuilder.render (which also works by the way).
So what am I doing wrong? Thanks.
--
Richard Jones
Leeds, UK
**********************************************************************
This message may contain confidential and privileged information.
If you are not the intended recipient please accept our apologies.
Please do not disclose, copy or distribute information in this e-mail
or take any action in reliance on its contents: to do so is strictly
prohibited and may be unlawful. Please inform us that this message has
gone astray before deleting it. Thank you for your co-operation.
NHSmail is used daily by over 100,000 staff in the NHS. Over a million
messages are sent every day by the system. To find out why more and
more NHS personnel are switching to this NHS Connecting for Health
system please visit www.connectingforhealth.nhs.uk/nhsmail
**********************************************************************
More information about the Catalyst
mailing list