Backbone-Forms submitButton option doesn't work

101 views Asked by At

In Backbone-Forms' docs it's mentioned that you can pass a submit button to the form.

submitButton {String}
If provided, creates a submit button at the bottom of the form using the provided text

I did so but it doesn't work.

form = new Form({
    fieldsets:[
        {legend:'PART1', fields:['title', 'content', 'email']},
        {legend:'PART2', fields:['country', 'sport']}],
    submitButton: 'SEND',
}).render();

Some lines in JSFiddle

1

There are 1 answers

0
vvahans On BEST ANSWER

The version of Backbone-Forms you are using and referencing in jsfiddle example haven't submitButton feature yet.

Read the master changelog and you will see. As I saw from official repo this is a new feature and currently available only on master branch. You can download and use that one from official repo.

Here is the link of the latest one.