Thanks, Kevin. That worked for me.

I think I have figured out what I was doing wrong. If I switch 'FormBuilder' to 'formbuilder' (in lowercase) I can use the following lines as expected.
    <table>
     <tr>
       <td>[% formbuilder.field.first_name.field %]</td>
       <td>[% formbuilder.field.last_name.field %]</td>
     </tr>
     <tr>
       <td class="beneath-label">[% formbuilder.field.first_name.label %]</td>
       <td class="beneath-label">[% formbuilder.field.last_name.label %]</td>
     </tr>
   </table>

Gah! Thank you very much, sir.


kevin montuori wrote:
"AK" == Ascii King <[email protected]> writes:


 AK> You can only call individual fields by referring to the array index,
 AK> like this:

 AK> [% FormBuilder.field.0.tag %]


not at all (and relying on a mutable index would be a terrible idea).

this (cut and pasted) markup works fine:

  [% first_name = formbuilder.field.first_name;
     last_name = formbuilder.field.last_name   -%]

  ...

     <table>
      <tr>
        <td>[% first_name.field %]</td>
        <td>[% last_name.field %]</td>
      </tr>
      <tr>
        <td class="beneath-label">[% first_name.label %]</td>
        <td class="beneath-label">[% last_name.label %]</td>
      </tr>
    </table>



k.



_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to