BUG #3114
Updated by Tasfia Zaima 7 months ago
On the Enquiry Form, the validation for the Name field is not strong enough. * If the user enters only blank spaces (e.g., two spaces) in the Name field, the form still gets submitted. * In the Email field, the form also submits if given email input with leading blank spaces before the email part or if very long email is inserted. part. ___ **Steps to Reproduce:** * Open the Enquiry Form page. * In the Name field, enter only blank spaces (e.g., two spaces). * Submit the form. * In the email field enter a few blank spaces before email part and then try submitting filling other options. * Submit the form. ___ **Expected Result:** * Form should validate the Name field properly and should not allow submission if the field contains only blank spaces. * Email field should not allow submission when there are leading blank spaces before the email part or if the email is very long. part. ___ **Actual Result:** * The form gets submitted even when the Name field contains only blank spaces and also if before email if we give blank spaces. * The form also gets submitted when the Email field contains leading blank spaces before the email. * The form also gets submitted when the Email field contains very long email. ___ **Video** https://drive.google.com/file/d/16cj5GbBCHJjhRuMfkclQC5iBNphsO_Xz/view?usp=sharing (Name) https://drive.google.com/file/d/1piJVrBxWG-_5vfxPdirwMsSnofoX0KDV/view?usp=sharing (Email)