i trying make child list take lookup id parameter in url , assign dropdown. the following code used work no longer does, ideas why?
<script type="text/javascript" src="https://xxxteamsitexxx/scripts/jquery-1.11.1.min.js"></script>
<script type="text/javascript">
jquery(document).ready(function($) {
//get projectname query string
var batchid = getparameterbyname("batchid");
//set corresponding lookup field value contact id
$("input[title='batchid']").val(batchid);
//use line disable lookup field selection
$("input[title='batchid']").attr('disabled','disabled')
//use line hide lookup field , label entirely
//$("input[title='batchid']").closest("tr").hide();
$("select[title='notes']").closest("tr").hide();
$('nobr:contains("status of transaction")').closest('tr').hide();
$('nobr:contains("sender name")').closest('tr').hide();
$('nobr:contains("receiver name")').closest('tr').hide();
});
function getparameterbyname(name)
{
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regexs = "[\\?&]" + name + "=([^&#]*)";
var regex = new regexp(regexs);
var results = regex.exec(window.location.href);
if(results == null)
return "";
else
return decodeuricomponent(results[1].replace(/\+/g, " "));
}
</script>
thanks assistance!
ryan
hi ryan,
based on description, have questions parent child lists javascript. suggest go our sharepoint msdn forum. dedicated support channel sharepoint customization related issues.
your understanding appreciated.
yoga
Office / SharePoint Online / Windows other / Office 365 for business
Comments
Post a Comment