Is there any chance of setting up an end or expiry date to content editor web part, so that it automatically go off when it passes the set date?
I am using SharePoint 2007.
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityCreate an Content Editor WebPart and add this in the source code:
<div id="demo"> Add your content inside this div</div>
<script>
jQuery(document).ready(function($)
{
var expiredDate = new Date("2014-12-20"); // set here the expiration date
if (expiredDate <= new Date())
{
document.getElementById('demo').style.display = 'none';
}
});
</script>