idurar-erp-crm icon indicating copy to clipboard operation
idurar-erp-crm copied to clipboard

Fix:-Bug: Company Name and Phone fields accept misleading input #1047

Open vr1Ravi opened this issue 10 months ago • 16 comments

Description

Inside forms/DynamicForm, index.js. I've added onKeyDown event to contry and search component to prevent meleading input values.

vr1Ravi avatar Apr 07 '24 06:04 vr1Ravi

Thanks for your work @vr1Ravi but i just tested your index.js and unfortunately i'm still able to enter misleading inputs. Screenshot (655)

inesmrad avatar Apr 07 '24 08:04 inesmrad

@inesmrad I see, can you tell me which browser you are using.

vr1Ravi avatar Apr 07 '24 08:04 vr1Ravi

@inesmrad I see, can you tell me which browser you are using.

i'm using Chrome version 123.0.6312.106

inesmrad avatar Apr 07 '24 08:04 inesmrad

@inesmrad, could you check it now.

vr1Ravi avatar Apr 07 '24 10:04 vr1Ravi

@inesmrad , could you please review the code I wrote. looking for your feedback.

vr1Ravi avatar Apr 08 '24 05:04 vr1Ravi

Hey @vr1Ravi , your PR works perfectly , but i also have a small suggestion .You know when i try to input a number in the Name field, the numbers part of the keyboard is kinda blocked. Wouldn't it be more helpful to keep it this way but also to display a clear error message so that users don't get confused. The error message will help users understand why their input is not accepted, reducing confusion and improving the overall user experience. What do you think ?

inesmrad avatar Apr 08 '24 12:04 inesmrad

Yes you are right. User might think "is something wrong with my kep board or app". A perfect error message will definetly enhance the UX. Let me try to add it.

vr1Ravi avatar Apr 08 '24 12:04 vr1Ravi

Yes you are right. User might think "is something wrong with my kep board or app". A perfect error message will definetly enhance the UX. Let me try to add it.

Awesome !!

inesmrad avatar Apr 08 '24 12:04 inesmrad

Hey @inesmrad, I did add the error message. Could you see if everything is ok.

vr1Ravi avatar Apr 10 '24 08:04 vr1Ravi

Hey @inesmrad, looking for your feedback on the latest change that I've made.

vr1Ravi avatar Apr 11 '24 13:04 vr1Ravi

Hey @inesmrad, looking for your feedback on the latest change that I've made.

hi @vr1Ravi , it works for the company name but not for the phone (still able to input alphabetic characters)

inesmrad avatar Apr 11 '24 17:04 inesmrad

@inesmrad, need little information, can you tell me in phone filed your are able to type any alphabate or only 'e'. Right now I've opend the repo and saw that for one time i am able to enter 'e' only. If you tell me the exact behaviour it would be helpful for me

vr1Ravi avatar Apr 11 '24 17:04 vr1Ravi

@inesmrad, need little information, can you tell me in phone filed your are able to type any alphabate or only 'e'. Right now I've opend the repo and saw that for one time i am able to enter 'e' only. If you tell me the exact behaviour it would be helpful for me

i'm able to type 'e' and ',' (comma) and i'm not getting an error message if i try to type another character, the keyboard is simply blocked

inesmrad avatar Apr 11 '24 17:04 inesmrad

i'm able to type 'e' and ',' (comma) and i'm not getting an error message if i try to type another character, the keyboard is simply blocked

Could you check it now. This time I've added error message too and tell me if we need to change the content of error message.

vr1Ravi avatar Apr 11 '24 17:04 vr1Ravi

i'm able to type 'e' and ',' (comma) and i'm not getting an error message if i try to type another character, the keyboard is simply blocked

Could you check it now. This time I've added error message too and tell me if we need to change the content of error message.

All good , it's working perfectly fine now, thank you for your work !

inesmrad avatar Apr 11 '24 17:04 inesmrad

All good , it's working perfectly fine now, thank you for your work !

Great to hear that everything is working perfectly now! You're welcome, happy to help!

vr1Ravi avatar Apr 11 '24 17:04 vr1Ravi