Wednesday, July 25, 2012

Hide SharePoint Field on Form

this script will hide the fields selected



<script language="javascript" type="text/javascript" src="SITE/Images1/jquery-1.3.2.min.js"></script>
<script language="javascript" type="text/javascript">
 $(document).ready(function() {
$("input[Title='Pos']").parents('tr:first').hide();
$("input[Title='Delete Item']").parents('tr:first').hide();

 });
// this script below till set default value in a edit form
jQuery("select[title$=Status] option[value='Occupied']").attr("selected", "selected");
jQuery("select[title$=Occupancy Hours] option[value='9']").attr("selected", "selected");
</script>


 

No comments:

Followers

No Locks without Key

🌿 Bible Verse 1 Corinthians 10:13 "No temptation has overtaken you except what is common to mankind. And God is faithful; ...

Who Am I?

My photo
What is mankind that you are mindful of them, human beings that you care for them? Psalms 8:4 But he made us a little lower than Angels and Crowned with Glory and Honor. How majestic is your name in all the Earth Oh Lord our God!