Hello Patric, you can see how Magnolia is doing it in DefaultFormDataBinder#getErrorMessage(String message, Content node) for normal fields and in formSelection.ftl of the from module how the labels are retrieved for check boxes etc. So for the selections you would have to read the labels definition and split at newlines like in the template.
Greetings, Anton On Mon, Mar 14, 2011 at 12:31 PM, patric dosch <[email protected]> wrote: > Hello list, > > when sending an email using the form modules, I would like to read the label > of the selected entries to a select or group of checkboxes / radios. > Currently I just get the form-value. Is there a suggested way to get the > label? > > Greets, patric > > ________________________________ > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- > ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
