I am working with JSON Schema and backbone forms for the first time. I have copied the same example as mentioned in backbone forms but it is giving error as shown below:
The code is mentioned below :
var registerForm = Backbone.Model.extend({
schema:{
title: { type: 'Select', options: ['Mr', 'Mrs', 'Ms'] },
name: 'Text',
email: { validators: ['required', 'email'] },
birthday: 'Date',
password: 'Password',
notes: { type: 'List', itemType: 'Text' }
}
});
var user = new registerForm();
var form = new Backbone.Form({
model: user
}).render(); $('body').append(form.el);
Please help me to resolve this issue.
You cannot include
Listeditor. This is a special editor which is in a separate file and must be included:https://github.com/powmedia/backbone-forms#list