You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since we used one input to search for firstName or lastName or phone.
In this case, the input value will be the same for the 3 things and that's will make the request failed because every field has a different validation.
As you can see in the picture
search?firstName=Vivian&lastName=Vivian&phone=Vivian
In search cases, we don't have to be very strict on what values the user will input, but in post request, we should care about it.
Instead of validation for search, we can handle a message that tells the user there is no result for your input value.
The text was updated successfully, but these errors were encountered:
Since we used one input to search for firstName or lastName or phone.
In this case, the input value will be the same for the 3 things and that's will make the request failed because every field has a different validation.
As you can see in the picture
search?firstName=Vivian&lastName=Vivian&phone=Vivian
In search cases, we don't have to be very strict on what values the user will input, but in post request, we should care about it.
Instead of validation for search, we can handle a message that tells the user there is no result for your input value.
The text was updated successfully, but these errors were encountered: