I'm working on an app with formsets, no I didn't build it, just fixing it. I have a formset with many forms in it and this is what's happening.
I have a field which the user enters a number and hits tab or the enter key and the other fields are filled in automatically. Well, when the enter key is hit, a different form within the formset is called into focus, and the click event of that form runs (which runs a report). Then the program crashes.
I've checked the point where the wrong form gets the focus and gets loaded and there's nothing there calling this other form. I've also checked to make sure that there isn't any ON KEY LABEL... for the enter key corresponding to that (wrong) form and for the life of me I can't figure out why, even if the form is called in error, why the click event of a button would run.
Any ideas/suggestions would be great as I'm at a bit of a loss.
I have a field which the user enters a number and hits tab or the enter key and the other fields are filled in automatically. Well, when the enter key is hit, a different form within the formset is called into focus, and the click event of that form runs (which runs a report). Then the program crashes.
I've checked the point where the wrong form gets the focus and gets loaded and there's nothing there calling this other form. I've also checked to make sure that there isn't any ON KEY LABEL... for the enter key corresponding to that (wrong) form and for the life of me I can't figure out why, even if the form is called in error, why the click event of a button would run.
Any ideas/suggestions would be great as I'm at a bit of a loss.