I have a Rails app with a model whose fields are dates which are checkpoints for a certain process.
I want to prevent the user entering a date for the nth checkpoint until they have entered a date for the (n-1)th.
Obviously, I can validate in the model to make sure that no dates are missing (and that dates are in chronological order) but this seems unsatisfactory. Ideally, the nth field should not be visible on the form until the (n-1)th field has been completed (and perhaps a 'next' button has been clicked.
I don't know much about AJAX other than having used it for adding comments on a blog, but it seems it might be useful in this problem. I'm going to take a look at it over the next few days, but I would appreciate it if anybody could give me some pointers.