How do I make a field default to the member's name/address/id?

« Back to Table of Contents

In the field's override fieldset, set the Default Expression to:

here/memberEmail

memberEmail is a method of the form folder which will return a member's e-mail address, if one is available, and an empty string otherwise.

You may also use "here/memberFullName" to get the member's name, and "here/memberId" to get the login id.

Please note: memberEmail, memberFullName and memberId are just a convenience facility of PloneFormGen. They are not part of the Plone API.