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

This field cannot be blank

May 13, 2014 at 7:54 PM
I have tried this code, however, my People Picker is named "Employee".
<script language="javascript" type="text/javascript"> $(document).ready(function() { var userName = $().SPServices.SPGetCurrentUser({fieldName: "Title"}); $("textarea[title='Employee']").val(userName); $("div[title='Employee']").text(userName); }); </script> I cannot get the People Picker to save the list form without an error. On-load of the list form the People Picker displays the username correctly, but when I click on the list form 'Save' button the error I am given underneath the People Picker is "This field cannot be blank."

I have validated the jQuery is loading and working and also validated the SPServices is loading and working.

Any ideas on how to fix my issue?