nus-cs2103-AY2223S2 / forum

12 stars 0 forks source link

Is redefine constraint for user input allowed in v1.4? #341

Closed Jiayan-Lim closed 1 year ago

Jiayan-Lim commented 1 year ago

Currently, in our software, we allow users to input numbers and special characters like (), +, - for phone numbers. But there is a bug where the user can input all special characters without any number image Is this considered a feature flaw or bug?

damithc commented 1 year ago

@Jiayan-Lim It's a feature flaw. In any case, it is arguable if this data field should be restricted to telephone numbers only or it is better to let users decide what they want to store in that field, without any restriction. In most cases the latter makes it more useful to the user e.g., 1234-2287 (or 88) It's rather annoying when the user has a good reason for entering some 'unusual' data for a specific field but the application won't allow it.

Jiayan-Lim commented 1 year ago

Thanks prof for quick reply