hi John,
1.if the user have permission to edit settings of list then you cannot prevent that.
2.you have inspect element after its is generated in the browser and using Jquery you can hide that (have to create content editor web part and place the Jquery code)
or
you can create pages from SharePoint designer, in the designer you can locate the element it would be placed inside
tr and td, assign some custom id to them and using that id you can hide the fields form the page.
I think you might aware of these things already.i hope this may help you.
Regards
Anandakrishnan
Ok now i got this column which will keeps showing after changing its default value, the name is "Item Number", and here is part of the markup :-
<table width="100%" class="ms-formtable" style="margin-" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="113" class="ms-formlabel" nowrap="true" valign="top">
<h3 class="ms-standardheader">
<nobr>Item Number</nobr>
</h3></td>
<td width="350" class="ms-formbody" valign="top">
<span dir="none"><input title="Item Number" class="ms-long ms-spellcheck-true" id="_x0049_D1_806a702b-1716-47f5-a93c-16067f502daf_$TextField" type="text" maxlength="255" value=""><br></span>
<span class="ms-metadata">Do not customize at the list level</span>
</td></tr>
so i wrote the following script to hide the whole TR:-
<script>
$( document ).ready(function() {
$('.ms-formtable table').each(function () {
$(this).find('tr').each(function () {
var str_text = $(this).find('td nobr').text();
// console.log(str_text);
if (str_text == 'Item Number') {
$(this).hide();
}
});
});
});
</script>
but this did not hide any thing..
-
Edited by
johnjohn123
17 hours 12 minutes ago