Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: This field cannot be blank

$
0
0
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?

Thanks,
Alex

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>