orppst / pst-gui

web based front end for the tool
Mozilla Public License 2.0
0 stars 0 forks source link

Make clear why save/update/submit buttons are disabled #161

Closed AllanEngland closed 1 week ago

AllanEngland commented 3 weeks ago

Form submit buttons follow a standard of being disabled until a form is both valid and 'dirty', however, there is no indication to the user what causes this.

I propose the common submitButton and saveButton optionally take 'form' as a parameter and, at the very least, change the tool tip to explain why it is disabled or not.

AllanEngland commented 2 weeks ago

I've added a new common button called FormSubmitButton that takes a form as a parameter and uses it to automatically enable or disable itself. It also changes the tool tip based on if the form is dirty or not valid.

Implementing this lead me down the path of trying to standardise our forms, which has turned into a bigger job than I expected. But if I can achieve a more consistent user experience it will be worth it.