Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sharepoint calculated field's formula for created by

i have a sharepoint list

with 2 users for examole (user A and user B)

i need a calculated field in the list items such that if user "A" created the item the field vaule will be "X" and if user "B" created the item fields value would be "Y"

but i couldnt use [created by] in the furmiula of the calculated field !! why is that ?!! and is there another way to do what i need to do ?!

like image 223
Ali Avatar asked Sep 20 '08 15:09

Ali


1 Answers

If using Sharepoint Designer is an option you can create a workflow for that list. Set it to start when a new item is created -or- edited, use a condition of "If Created_By equals ..." and an action of "Set yourfield to yourvalue", then add an Else If branch and repeat. This will always override anything a user enters in "yourfield". Takes about 2 minutes to do all of this.

like image 125
cascadianista Avatar answered Oct 18 '22 06:10

cascadianista