现在的位置: 首页 > 综合 > 正文

Use the PreSaveAction for Moss 2010

2013年02月18日 ⁄ 综合 ⁄ 共 436字 ⁄ 字号 评论关闭
<script type="text/javascript" language="javascript">

function PreSaveAction() 
{
    if(condiction)      
     	return true    
    else          
      return false
}
</script>

If the function PreSaveAction return false, then the item form will not be submitted and keep on the creating or updating form.if the function PreSaveAction return true, then the item will be submitted.We usually use put the code under this node of New form
and update form aspx files :

<asp:Content ContentPlaceHolderId="PlaceHolderTitleAreaClass" runat="server">

抱歉!评论已关闭.