我试图在jsfiddle中复制示例bootstrap / parsley表单 with bootstrap 3 parsley 2.2.0-rc4 http://jsfiddle.net/bwolfsohn/9wfjo94w/14/
表单弹出消息:是的,一切似乎都没问题.. 然后出错:
{"error": "Shell form does not validate{'html_initial_name': u'initial-js_lib', 'form': <mooshell.forms.ShellForm object at 0x2971b90>, 'html_name': 'js_lib', 'html_initial_id': u'initial-id_js_lib', 'label': u'Js lib', 'field': <django.forms.models.ModelChoiceField object at 0x2997bd0>, 'help_text': '', 'name': 'js_lib'}{'html_initial_name': u'initial-js_wrap', 'form': <mooshell.forms.ShellForm object at 0x2971b90>, 'html_name': 'js_wrap', 'html_initial_id': u'initial-id_js_wrap', 'label': u'Js wrap', 'field': <django.forms.fields.TypedChoiceField object at 0x29974d0>, 'help_text': '', 'name': 'js_wrap'}"}
答案 0 :(得分:0)
我不太确定那个错误是什么,但我已经更新了这个例子,希望它会让事情更清晰,更好。
答案 1 :(得分:0)
好的..这看起来像一个jsfiddle问题...... 我手动加载它并在codepen上运行它没有问题......
http://codepen.io/bwolfsohn/pen/dGbePr
You've just POSTed to a Pen.
Values Posted
fullname brian wolfsohn
email brian@cus.com
gender M
message
Values as JSON
{"fullname":"brian wolfsohn","email":"abc@def.com","gender":"M","message":""}