We can't hide the Yes/No field using OOB in sharepoint. Better we go for script editor to hide the particular column. Apply the following steps.
Add in the Content Editor Web Part located under the Media and Content category.
Paste the following code:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('nobr:contains("TestColumn")').closest('tr').hide();
});
</script>
you can use this for multiple columns also.
thank you.
Add in the Content Editor Web Part located under the Media and Content category.
Paste the following code:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('nobr:contains("TestColumn")').closest('tr').hide();
});
</script>
you can use this for multiple columns also.
thank you.
Works great, thanks!
ReplyDelete