laravel-crm icon indicating copy to clipboard operation
laravel-crm copied to clipboard

When we create a web form and create a persons from here so in contact phone no. field is not taking validation, here added with letters also

Open komal-sh-27 opened this issue 10 months ago • 3 comments

Title:

When we create a web form and create a persons from here so in contact phone no. field is not taking validation, here added with letters also

Steps to Reproduce:

Step 1: Create a web form under settings option like this:

image

image

Step 2: Now create a persons from this web form with contact form add text instead of numbers:

image

image

Step 3: Now go to the admin panel under contacts -> persons option, here shows a text in phone no. coloumn:

image

Expected result:

If we have enter a text in phone no field then should be shown a warning like this:

The Contact Numbers field may only contain numeric characters

image

Actual result:

If we have added a text or characters in phone no field then web form submit without any warning shows.

komal-sh-27 avatar Apr 01 '24 13:04 komal-sh-27

PR https://github.com/krayin/laravel-crm/pull/1245

prabhat-webkul avatar Apr 10 '24 13:04 prabhat-webkul

In web form page, The contact number field should only accept numeric values, and a validation message should appear if an alphanumeric or character value is entered.

Attached video/screenshot reference

https://github.com/krayin/laravel-crm/assets/163374765/c1a3699c-26f6-43f1-8bae-d067f2025165

harshit-webkul avatar Apr 18 '24 07:04 harshit-webkul

because basic validation is added for now as no custom js is used,

not planning currently, create a separate issue as enhancement/feature

prabhat-webkul avatar Apr 19 '24 12:04 prabhat-webkul