DigitalShoestringSolutions / InventoryManagement

Shoestring starter solution for a simple inventory management system
GNU General Public License v3.0
0 stars 1 forks source link

Incomplete form causes ValidationError screen #16

Open tobyaharris opened 3 months ago

tobyaharris commented 3 months ago

On forms - including Order and Withdrawal - this can happen.

Testing on feature/stock-check(but I doubt this is branch specific), I filled in only the first half of the order form to see what happens.

image

It's not unreasonable that trying to submit a partially complete form doesn't work, but this needs to be handled gracefully. A traceback is not what the user needs to see when learning the UI, or this is a harsh response to accidentally forgetting a field. Could we have something like how google forms behave if a required answer is not provided?

image

anandarupmukherjee commented 2 months ago

i'll look into it.

tobyaharris commented 2 months ago

Something similar also happens with the withdrawal form. Omit any field and you get whacked with the big yellow and gray.

If from the dropdown you select an item, and you know this item is available in one location only, beware of submitting before changing Select a Location to the only available option. Prefill me!

tobyaharris commented 1 month ago

Despite the merged PR above, this issue remains as many other web forms still present the same issue, which may be harder to fix.