新表单定制 [英] new form customization

查看:65
本文介绍了新表单定制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有自定义新表单,其中我有三个按钮保存,提交和取消。如果我点击保存它应该保存,用户可以编辑它,如果我点击提交它应该存储列表中的数据,最后它的只读表格。


I have custom new form in which i have three buttons Save,submit and cancel.if i click on save it should be saved and users can edit it and if i click on submit it should be store the data in list and finally its read only form.

推荐答案

示例脚本您的参考。

 <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css">
    <script src="https://code.jquery.com/jquery-1.12.4.js"></script>        
    <style type="text/css">
        /*hide OOB save ribbon*/
        #Ribbon\.ListForm\.Edit\.Commit\.Publish-Large {
            display: none !important;
        }
    </style>

    <script type="text/javascript">
        var ItemIDCache;//use in submit


(function(){
(function () {


(" input [type ='button'] [value ='Save']")。hide();
var CustomSave =
("input[type='button'][value='Save']").hide(); var CustomSave =


这篇关于新表单定制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆