开发者

Replace link to DispForm.aspx with call to javascript function in SharePoint

开发者 https://www.devze.com 2023-04-04 00:19 出处:网络
I made a Calendar View in SharePoint to show all the projects each functional team has to work on for the month.What I would like to do is replace the link to dispform.aspx with a script to hide any i

I made a Calendar View in SharePoint to show all the projects each functional team has to work on for the month. What I would like to do is replace the link to dispform.aspx with a script to hide any item that doesn't share a project name with the item clicked on.

Example: Project 1 runs from August 1-August 15 Project 1 runs from August 20-August 25 Project 2 runs from August 15-August 26

When the user 开发者_运维知识库clicks on either of the Project 1 list items, I want to run my script to hide Project 2.

The issue is that I can't find a way to stop the call to the DispForm.aspx page when the item is clicked on.

EDIT: Answered my own post: Found this link to disable the links + add javascript to the OnClick event

http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/498b171a-b00a-4dd9-8bee-2348bc4ccbd8/

0

精彩评论

暂无评论...
验证码 换一张
取 消