Map of field values.
Object, default = {}
If you defined a form that has .recid and .url properties defined, the form data will be loaded from the remote data source into the .record object.
You can also define record during object creation: $('#form').w2form({ name : 'form', style : 'border: 0px; background-color: transparent;', formURL : '/server/path', fields: [ { name: 'first_name', type: 'text', required: true }, { name: 'last_name', type: 'text', required: true }, { name: 'email', type: 'email' } ], record: { first_name : 'John', last_name : 'Doe', email : 'jdoe@email.com' }, actions: { "save": function () { this.validate(); }, "reset": function () { this.clear(); } } }); Or any time during run-time w2ui['form'].record = { first_name : 'John', last_name : 'Doe', email : 'jdoe@email.com' } w2ui['form'].refresh();