Michael Ralston wrote:
> It looks like you've basically hard coded your fields into the
> flowscript. This is what I wanted to avoid.

Can't you just iterate over the fields with plain javascript?

var model = form.getModel()
var body = ''
for (var field in model)
        body += field + ':\t' + model[field] + '\n'
cocoon.sendPage("sendpage", {subject: 'Contact', body: body})


Toby

-- 
Signed/encrypted mail welcome.  GPG/PGP Key-Id: 0x15C5C2EA

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to