I'd like to be able to present a single form field (HTML <input>) for
the gathering of a user's full name, but be able to split it into
forename and surname. The aggregatefield appears to be designed for
this, but the documentation provides no details on templating it.
<fd:aggregatefield id="organiser" required="true">
<fd:widgets>
<fd:field id="forename" required="true">
<fd:label>Forename</fd:label>
<fd:datatype base="string"/>
</fd:field>
<fd:field id="surname" required="true">
<fd:label>Surname</fd:label>
<fd:datatype base="string"/>
</fd:field>
</fd:widgets>
<fd:split pattern="\([^\ ]*\)\ \([^\ ]*\)">
<fd:map group="1" field="forename"/>
<fd:map group="1" field="surname"/>
</fd:split>
<fd:combine expression="forename surname"/>
</fd:aggregatefield>
However, in the form template, if I say
<tr>
<td><ft:widget-label id="organiser"/></td>
<td><ft:widget id="organiser"/></td>
</tr>
it understandably complains that there is no widget "organiser". What
have I misunderstood?
///Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]