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

New Post: Dropdown field sending null on form submission

$
0
0
Happy Monday! That snippet works perfect! Here's the full snippet that sets the value, hides the field in the form and allows the data to be submitted to the list. Thanks again!
<script language="javascript" type="text/javascript">

$(document).ready(function() {  

var userFullname = $().SPServices.SPGetCurrentUser({  

fieldName: "Title" 

});  

$("textarea[title='People Picker']").val(userFullname);
$("div[title='People Picker']").text(userFullname);

$("nobr").filter(function() { 
// Ensures we get a match whether or not the People Picker is required (if required, the nobr contains a span also) 
return $(this).contents().eq(0).text() === "Requester"; 
}).closest("tr").hide();

});

</script>

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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