How do I display the last person that modified a sharepoint form?

R

Renee in Juneau

Change the sharepoint view so that it shows the "Modified By" field.

On Tue, 12 Jul 2005 17:21:01 -0700, "Bernie Hsu" <Bernie
 
B

Bernie Hsu

Sorry I was not clear in my question. I'm trying to create an electronic
approval expense form. So one person would create the expense form and then
a supervisor sign off on it. I want to list on the form who last modified
it. This way I prevent anyone else from modifying the info on form without
the supervisor being the last one to review and approve it. So I need to
capture whether the information on the form was modified and if so, the user
name. Is that possible in Sharepoint? Or is there a better way to track an
electronic approval?
 
R

Renee in Juneau

Sorry.

There's probably a lot of ways to do this, but I would create a
"whoami" web service (see other posts) and add a readonly field with
the label "Last Modified By".

Then I would go into Tools/Form Options/Open and Save and check the
"Save Using Custom Code" box, edit the code and add a line that
assigned the field's value to the whoami result immediately before the
form is saved.

But on second thought, I guess it would be better to create a rule
that assigned the fields value when the form was opened (also in
Tools/Form Options/Open and Save). This way, the user would see that
their name was on the form as the last modifier. Shucks. Downside is
that if a user opens the form, they'll see their name whether or not
they've made a change to it. If they don't save it, the field keeps
its original value.

Nah.

FWIW, in the situation you describe I would also be making heavy use
of user roles and assigning views appropriate to those roles. For
instance, the form defaults to a read only view and when the user
changes it to a view that allows modification, *then* set the "last
modified by" field.

Choices, choices. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top