主题 : 智能表单不能验*必填项 |
级别: 秀才
![]() |
12# 发表于:2019-08-12 11:03:51 IP:222.23.*.*
为啥?权限不够么?
|
||
---|---|---|---|
级别: 秀才
![]() |
14# 发表于:2019-08-12 11:13:33 IP:222.23.*.*
我有选择文件的按钮,选择图片有个列表,我点击提交按钮就是回复成功之后就是没有图片
$(function() { $('#submit').click( function() { var options = { url: '${base}/record_save.jspx', type: 'post', dataType: 'json', data: $('#form').serialize(), success: function(data) { if (data.status == 0) { alert('提交成功') window.location.href="http://127.0.0.1:9090/customRecord/1.jhtml"; } else if (data.status == 1) { alert('验证码错误') $('#customCaptcha').click() } else if (data.status == 2) { alert('该站点不可用') $('#customCaptcha').click() } else if (data.status == 3) { alert('您需要登陆') $('#customCaptcha').click() } else if (data.status == 4) { alert('表单发起尚未开始') $('#customCaptcha').click() } else if (data.status == 5) { alert('表单发起已经结束') $('#customCaptcha').click() } else if (data.status == 6) { alert('您今日已超过提交上限') $('#customCaptcha').click() } } } $.ajax(options) return false }) $('.cms-rest').click(function(){ window.location.reload(); }) 这是我的表结构 record_id form_id status create_time site_id user_id 30 1 2 2019-08-12 10:17:15 1 1 31 1 2 2019-08-12 10:21:34 1 1 32 1 2 2019-08-12 10:27:27 1 1 33 1 2 2019-08-12 10:28:27 1 1 34 1 2 2019-08-12 10:46:38 1 1 |
||
---|---|---|---|
级别: 秀才
![]() |
15# 发表于:2019-08-12 11:14:29 IP:222.23.*.*
回复第14楼
filed_id form_id field label priority def_value opt_value text_size description data_type is_display is_required 1 1 name 拟报专利名称1 1 1 0 1 2 1 name1 拟报专利名称2 2 1 0 0 3 1 name3 拟报专利名称3 3 1 0 0 4 1 name4 拟报专利名称4 4 1 0 0 5 1 name5 拟报专利名称5 5 1 0 0 6 1 name6 拟报专利名称6 6 1 0 0 7 1 unit 申请单位 7 1 1 1 8 1 contact 联系人 8 1 1 1 9 1 phone 电话 9 1 1 1 10 1 email 邮箱 10 1 1 1 11 1 attach 附件 11 9 0 1 |
||
---|---|---|---|
级别: 秀才
![]() |
17# 发表于:2019-08-12 11:17:51 IP:222.23.*.*
回复第16楼是的,我下载的开源版本升级的
|
||
---|---|---|---|
级别: 秀才
![]() |
18# 发表于:2019-08-12 11:18:21 IP:222.23.*.*
回复第16楼 而且我只有验证码有认证
|
||
---|---|---|---|