Wednesday, October 14, 2015

Calendar "New" event won't throw postback when adding

After lot of struggle and Google i found the solution which i would like to share. Solution is very simple.

Go to Sharepoint Designer
Open Your site
Click on All Files > Lists > <Your List Name >
Open NewForm.aspx  (Right click on the page and click on "Edit File in Advance Mode")
Find PlaceHolderMain
Insert the below script on the page under the PlaceHolderMain

<script type="text/javascript">

function RTE_ConvertTextAreaToRichEdit() {};

</script>

Save the page ,

Now try to save the item in Calendar. It will start saving the items.

What is actually does.

It actually override the method and fool the system with the empty method. In Result it removes all the formatting with Rich Text Box and convert it to a plain text area.

No comments:

Post a Comment