locked
Disable notes on case form RRS feed

  • Question

  • Hi all,

    function DisableNotes()
    {
        //Hide 'Create a New Note' link
        window.frames[0].document.getElementById('newNoteButton').style.visibility="Hidden";
        var NotesTable = window.frames[0].document.getElementById('NotesTable');
        //Disable the entire table
        NotesTable.disabled = true;
        var TextArea = NotesTable.getElementsByTagName('TEXTAREA');
        //It's still necessary to individually disable the Textareas where users edit the existing notes.
        for (i=0;i<TextArea.length;i++)
        {
            TextArea[i].disabled = true;
        }
       
        return;
    }

    This function is working for IE8 but not IE9.

    Please let me know any settings to be done for IE9.

    Bhaskar

    Wednesday, November 30, 2011 6:21 AM

All replies

  • Unfortunately the above javascript is unsupported in CRM.  Please understand the risks involved with having unsupported customizations in your system. 

    Can you elaborate on your scenario?  Do you want to make the notes readonly?  If so, on what conditions?  Would modifying the user privileges work?  It may be possible to hide/show the entire notes control using client side logic in a supported way.

    Thanks,

    Brandon

    Friday, December 2, 2011 12:02 AM