News for hackers. Stuff that matters.
Re:Show HN: Formbuilder.js by bazzargh on Thursday September 12, 2013 @05:40AM (#6373064)
I disagree with this type of form builder. In a previous job, we built lots of forms (for gov/banking sectors), had a formbuilder product, and used multiple commercial formbuilders too. They were all more complex but fundamentally the same: making you focus on layout and field types up front, not content. (think Powerpoint vs LaTeX)

What we needed, it seemed to me, was something that started simply with the list of questions the user wanted to ask, and elaborate on that, adding field types/lookups/help text after the fact. The type of response had to be something you could change without deleting the form control and replacing it eg; start with a text box. Change it to a date picker. Then change it to a selection when you realise that only Monday & Wednesday are valid answers. This kind of change happened pretty regularly, but is stupidly hard in most form builders.

The other mistake of allowing too much flexibility in layout doesn't apply to Formbuilder.js - but many products made it easy to design forms that were inaccessible, or that wouldn't work on different screen sizes, or couldn't be laid out well on paper (ultimately many of these forms had to be printed for archiving). The form builder should generate accessible layouts that worked on multiple devices, and very little of the layout should be in the hands of the end user.

A less visible aspect of what was wrong with form design was versioning the data model. A user may submit drafts of the same form several times, over many weeks (applications get rejected, plans change etc). Meanwhile, the regulations driving the forms would change, or bugs would be found, and the form would change. It's important to be able to load the old data in a new form, and not choke on validation failures. Particularly, if some piece of data is now missing that means large optional sections are no longer displayed, we should not lose the data that the user had filled in in those sections.

A final data model issue was that we were also creating xsd's for electronic submissions etc. At that time the best solution was to massage the data after form submission into a schema specified format; but this meant that validation code was essentially written twice (once in the form, once in the schema), and the two were out of step. I wanted to generate schemas for valid complete forms, and to be able to clean up the saved data (which may be out of step with the current form version, see last para)

Anyway it turned out all this was possible, but I was leading a different team from the formbuilder one, so they went with a more conventional design. Sadly part of this was commercial: producing complex forms layout-first is hard enough for non-techies that the company could offer this as a service...rather than producing a better UX :(

Re:Show HN: Formbuilder.js by optymizer on Thursday September 12, 2013 @08:53AM (#6373667)
Coincidentally, I am working on a BSD-licensed form builder (as part of a larger project), and I found your comment timely and insightful. You may have unknowingly improved our form builder, so thanks :)
Re:Show HN: Formbuilder.js by mooneater on Thursday September 12, 2013 @08:34PM (#6377880)
Can you point us to it please?
Re:Show HN: Formbuilder.js by minikomi on Thursday September 12, 2013 @01:12AM (#6372199)
I suppose I can be so audacious as to plug this here too: http://minikomi.github.io/Bootstrap-Form-Builder/ for bootstrap forms.
Re:Show HN: Formbuilder.js by hiccup on Thursday September 12, 2013 @09:16AM (#6373769)
Nice plug. Bonus for relevancy.
Re:Show HN: Formbuilder.js by ryhanson on Thursday September 12, 2013 @12:41AM (#6372094)
I will definitely be using this! I was just about to code my own for a project I'm working on. The ability to put the fields in columns would be great. An example would be to allow some to have two separate text fields, like First Name & Last Name, on the same line.
Re:Show HN: Formbuilder.js by davidjgraph on Thursday September 12, 2013 @06:36AM (#6373235)
Nothing shows up in IE 8, might be worth putting a supported browser list in the README.
Re:Show HN: Formbuilder.js by sriharis on Thursday September 12, 2013 @01:10AM (#6372189)
An open source Wufoo :) Cool.
Re:Show HN: Formbuilder.js by nej on Thursday September 12, 2013 @03:59AM (#6372729)
Yay a backbone.js article! No hate on Angular.js but that's mainly what I've been seeing on HN lately. I miss the Ember.js, Knockout.js, etc.js articles.
Re:Show HN: Formbuilder.js by jpkeisala on Thursday September 12, 2013 @05:04AM (#6372929)
I actually wished it would have been built with Angular.
Re:Show HN: Formbuilder.js by xtrumanx on Wednesday September 11, 2013 @11:26PM (#6371871)
Seems like this can easily be extended to add other non-input related elements like lists and such.

Then it can be renamed PageBuilder.js. Any plans to do so?

Re:Show HN: Formbuilder.js by JDDunn9 on Thursday September 12, 2013 @01:11AM (#6372191)
Looks nice. Too bad it requires backbone and rivets...
Re:Show HN: Formbuilder.js by thejosh on Wednesday September 11, 2013 @11:39PM (#6371913)
Add a new field is blank.
Re:Show HN: Formbuilder.js by 5vforest on Thursday September 12, 2013 @02:23AM (#6372384)
File an issue? I'm not 100% sure what you mean, but would love to be able to solve this.