ユーザーがサイトのアイテムの表示を完了すると、出席者のためにNewFormがポップアップする完全なボタン(必要なタスクが完了するまで隠されていたボタン)をクリックしますリスト。ユーザーが名前を付けて保存をクリックすると、NewFormが閉じます。私はNewForm(NewForm_CloseAfter.aspx)を作成し、NewForm_CloseAfter.aspx(これまでの問題なし)を開くようにサイトを指示しました。SharePoint 2013上の余分なボタンNewForm.aspx
以下のコードを参照してください。私はSharePointのボタンをコメントアウトし、HTML入力ボタンを追加しました。
問題:フォームの下部にある自分のhtml入力ボタンが問題なく動作します。ただし、既定の保存/キャンセルボタンのように見えますが、情報を送信して一覧を表示する(不要な動作)既定の動作で表示されます(不要な動作)
質問:フォームの上部にある既定のボタン?
おかげ
<tr>
\t \t \t <td class="ms-toolbar" nowrap="nowrap">
\t \t \t \t <table>
\t \t \t \t \t <tr>
\t \t \t \t \t \t <td width="99%" class="ms-toolbar" nowrap="nowrap"><IMG SRC="/_layouts/15/images/blank.gif" width="1" height="18"/></td>
\t \t \t \t \t \t <td class="ms-toolbar" nowrap="nowrap">
\t \t \t \t \t \t \t <!--<SharePoint:SaveButton runat="server" ControlMode="New" id="savebutton2"/>-->
\t \t \t \t \t \t \t <input name="Submit1" type="submit" value="Save" id="savebutton2" style="width:75px" onclick="javascript: {ddwrt:GenFireServerEvent('__commit')}; window.alert('Item updated.') ; window.close();" />
\t \t \t \t \t \t </td>
\t \t \t \t \t \t <td class="ms-separator"> </td>
\t \t \t \t \t \t <td class="ms-toolbar" nowrap="nowrap" align="right">
\t \t \t \t \t \t \t <SharePoint:GoBackButton runat="server" ControlMode="New" id="gobackbutton2"/>
\t \t \t \t \t \t </td>
\t \t \t \t \t </tr>
\t \t \t \t </table>
\t \t \t </td>
\t \t </tr>