【问题标题】:Extra Buttons on SharePoint 2013 NewForm.aspxSharePoint 2013 NewForm.aspx 上的额外按钮
【发布时间】:2016-04-27 15:18:57
【问题描述】:

我有一个站点,当用户完成查看站点上的项目时,他们单击一个完成按钮(在完成所需任务之前该按钮会被隐藏),该按钮会弹出一个新表单用于出勤列表。一旦用户添加他们的名字并点击保存,NewForm 应该关闭。我创建了一个 NewForm (NewForm_CloseAfter.aspx) 并指向该站点打开 NewForm_CloseAfter.aspx(到目前为止没有问题)。

见下面的代码。我注释掉了 SharePoint 按钮并添加了 html 输入按钮。

问题:表单底部的 html 输入按钮工作正常。但是,看起来默认的保存/取消按钮位于顶部,默认行为是提交信息并显示列表(不需要的行为)

问题:如何删除表单顶部的默认按钮?

谢谢

<tr>
			<td class="ms-toolbar" nowrap="nowrap">
				<table>
					<tr>
						<td width="99%" class="ms-toolbar" nowrap="nowrap"><IMG SRC="/_layouts/15/images/blank.gif" width="1" height="18"/></td>
						<td class="ms-toolbar" nowrap="nowrap">
							<!--<SharePoint:SaveButton runat="server" ControlMode="New" id="savebutton2"/>-->
							<input name="Submit1" type="submit" value="Save" id="savebutton2" style="width:75px" onclick="javascript: {ddwrt:GenFireServerEvent('__commit')}; window.alert('Item updated.') ; window.close();"  />
						</td>
						<td class="ms-separator">&#160;</td>
						<td class="ms-toolbar" nowrap="nowrap" align="right">
							<SharePoint:GoBackButton runat="server" ControlMode="New" id="gobackbutton2"/>
						</td>
					</tr>
				</table>
			</td>
		</tr>

【问题讨论】:

    标签: sharepoint sharepoint-2013


    【解决方案1】:

    在设计器中编辑您的自定义新表单并搜索“savebutton1”。找到周围的 tr 并注释掉它就完成了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-07-02
      • 2012-12-24
      • 1970-01-01
      • 2015-03-17
      • 2023-03-13
      • 1970-01-01
      • 2021-04-03
      相关资源
      最近更新 更多