I have a ModelForm with two integer fields, x and y. These correspond to coordinates on an image. For our non-JS users, when inputting data I’ve supplied an input with type=image. This type of input sends the x and y of where it was clicked.
The problem is that if I exclude x and y in my form, the results from the clicked image are not processed. If I don’t exclude them, they are processed correctly, but two text inputs are shown. What should I do so that the form doesn’t display x and y fields, but doesn’t ignore the result?
Something like this should work: