Thanks Marius, I don't know why I didn't think of that works like a charm!
- Original Message -
From: "Marius Dumitru Florea"
To: "XWiki Users"
Sent: Thursday, January 16, 2014 8:43:54 AM
Subject: Re: [xwiki-users] Assign user list property
Just
Just put a
$doc.display('reporter', 'hidden')
somewhere in your form, after you set its value. It will generate an
hidden input field that will ensure the reporter is saved.
Hope this helps,
Marius
On Thu, Jan 16, 2014 at 12:12 AM, Kelly Steinke wrote:
> I have a class called TaskManager with
I have a class called TaskManager with a property called Reporter that is of a
"List of Users" type. What I am trying to do is assign the current user to the
Reporter property when a new document is created so that the user does not have
to select himself from the user list control, but I would