I hope I can explain this so you understand.

Let's say I have an online form that the user needs to edit. The form is a combination of text-input boxes and drop-down selects and check boxes.

One section on the form is several check boxes that the users is allowed to choose a maximum of 3 boxes.

Right now the user gets a message, upon submitting the edited form, that says "you have selected more than 3 boxes" if they have went over the limit.

Then when they go back to select only 3 boxes the other fields, that they have just edited, that data was not saved.

Is there a method that would allow the just-edited data still in the form so the user doesn't have to retype/re-enter all of it?