Document Actions
Get the ULink UserID when a form is submitted
Up to Table of Contents
There are times in Form Folder (PloneFormGen) when you may want to automatically grab user info from a logged-in user.
Add a string field to your form folder.
Add the following to the override section of the string field to get a person's ULink UserID if they are logged in:
python:here.portal_membership.getAuthenticatedMember().getUserName()
You may want this to be a hidden field.
Ensure people are logged-in
You'll probably want to make sure the person is logged-in. At UofL, you would first create a folder (maybe call it "Authenticated Forms"), then change the State of that folder to Require Login. Put your Form Folder inside the Authenticated Forms folder. This will require any user who wants to fill-in the form to first log-in.

