This project has moved and is read-only. For the latest updates, please go here.

Somehow use SPGetCurrentUser to set default dropdown values?

Aug 20, 2012 at 4:30 PM

So I have this problem, and I'm still trying to come up with ways to tackle it. Basically I have a form and on it I would like to have two special types of the dropdowns.

On type would set the value based on the current user and not allow it to change. Was thinking maybe this was possible with just another lookup list and then use SPGetCurrentUser to match and select the value. A bit of a problem comes into play though because some of the columns that need this feature are already part of a SPCascadeDropdowns.

The second kind would just set the default value based on the user, but they could still just change it if they want. 

Does this seem like something that is possible with SPGetCurrentUser, or is there an easier way to do all of this and I'm just over complicating it?

Best Regards,

John W.

Sep 6, 2012 at 4:15 PM


You could set the value and then disable the HTML element(s) so that the use couldn't change the value. However, might it make more sense to use a People Picker?