0

I am using SharePoint 2013 OP.

I have a calendar view, with several re-occuring appointments. Is there a way of disabling the link, so that you can't click into the appointment to see further details?

Thanks

2
  • You need to disable links on whole calender view or only for that several appointments?
    – Marko Tica
    Commented Oct 17, 2020 at 11:04
  • For that entire calendar view.
    – Daryl
    Commented Oct 18, 2020 at 17:45

1 Answer 1

0

Here is a script I tested and worked in my end. Please have a try. It is from the thread here: disable hyperlink in calendar event view, but keep the 'expand' option available

<script src="//code.jquery.com/jquery-3.2.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {      
     setInterval(function (){
        $(".ms-acal-item").bind("click dblclick", function () {
            return false;
        });
        $(".ms-acal-item a").bind("click dblclick", function () {
            return false;
        });

        $(".ms-acal-item a").each(function(){
            $(this).replaceWith($(this).text());
        });     
    },1000);
});
</script>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.