derekr / thoughts

Issues repo to track different projects and various thoughts
0 stars 0 forks source link

mutli-step/page forms #3

Open derekr opened 9 years ago

derekr commented 9 years ago

Grouping inputs in to separate views.

When I build these I seem to always forget the core conclusions I come to every time.

If render as a single form we don't have to worry about maintaining input state on the server/session, it can all be done in memory which is how we think of it anyway.

If you make the submit event the driver you can centralize the validation and form progression.

on submit
  all fields up to current selected valid?
    progress to next section
  are all fields valid?
    submit data
  else
    update error state and render