How to delete Content Type drop down menu from EditForm.aspx
-
16-10-2019 - |
Question
I am trying to delete Content Type drop down menu from EditForm.aspx but not able to do it?
Any ideas? Pls shoot
-saumil
Solution
You'll have to get into the DOM and find a good selector for this. Once you find one, the code should look similar to:
<script type="text/javascript">
$(document).ready(function(){
$("selector").hide();
});
</script>
OTHER TIPS
You can hide it with jQuery or you can create a custom list form and hide it that way as well. Each approach is valid, but the latter is more conducive to performance. If you are allowed to use SPD, I'd just hide the drop down with a custom list form.
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange