Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phone Number Field Validation Not Working – Unable to Purchase WordCamp Tickets #1408

Closed
arunpk92 opened this issue Oct 21, 2024 · 12 comments · Fixed by #1409
Closed

Phone Number Field Validation Not Working – Unable to Purchase WordCamp Tickets #1408

arunpk92 opened this issue Oct 21, 2024 · 12 comments · Fixed by #1409

Comments

@arunpk92
Copy link

arunpk92 commented Oct 21, 2024

Describe the bug

we are encountering an issue with the phone number field validation while trying to purchase tickets for WordCamp. The validation for the phone number field does not seem to be functioning correctly, and as a result, users are unable to proceed with the ticket purchase.

To reproduce

Steps to reproduce the behavior:

  1. Go to the WordCamp 2024 ticket purchase page from Android/ iPhone devices.
  2. Fill out all required details, including the phone number.
  3. Submit the form
  4. See error

Expected behavior

The form should accept valid phone numbers and allow users to proceed with the ticket purchase.

Screenshots / Screencasts

https://ibb.co/6RD5cdp

WordCamp

If this is a problem on a specific WordCamp's site, list the site or page URL here. https://kerala.wordcamp.org/2024/

System (please complete the following information)

  • Device: Android/ iPhone devices
  • OS: Android/ IOS
  • Browser: chrome, safari

Security Issues

To report a security issue, please visit the WordPress HackerOne program: https://hackerone.com/wordpress.

@pkevan
Copy link
Contributor

pkevan commented Oct 21, 2024

I can't see the screenshots for this issue.

@arunpk92
Copy link
Author

Screenshots / Screencasts

https://ibb.co/6RD5cdp

@arunpk92
Copy link
Author

I can't see the screenshots for this issue.

@pkevan When we try to enter a phone number, it does not accept any numbers. Attached the screenshot

@pkevan
Copy link
Contributor

pkevan commented Oct 21, 2024

Thanks - I can reproduce only on android it seems. @ryelle any ideas?

@ryelle
Copy link
Contributor

ryelle commented Oct 21, 2024

@arunpk92 In case there are country-code differences, can you share an example of a phone number you're trying to enter?

I can't reproduce the phone error on my android, but I never get to the payment processor on any device, it just keeps redirecting me back to the ticket form with "It doesn’t look like your form submitted any attendee information. Please try again."

Image

I'll keep looking into this.

@arunpk92
Copy link
Author

@ryelle I have tried with the +91 country code and also without it as 10 digits. Both times, it's showing the validation message: "Please enter only numbers."

@harishankerr
Copy link
Collaborator

harishankerr commented Oct 21, 2024

@ryelle Confiming that I was able to replicate the same issue. It seems to be present in other websites, at least in delhi.wordcamp.org as well.

In short, when one attempts entering a phone number in any format and clicks "Checkout", it throws this error on a mobile device, basically in all platforms. It works perfectly fine on desktop though.

Here's a screenshot:
https://d.pr/i/OEqJ7a
Full Size: https://d.pr/i/OEqJ7a

@ryelle
Copy link
Contributor

ryelle commented Oct 21, 2024

Okay, I can see the error when I enter a number with spaces, but it was working for me when I entered only the numbers - that's why I was asking for an example phone number format. I'll see what I can do about debugging this further.

@StevenDufresne
Copy link
Contributor

Why are phone numbers required?

@ryelle
Copy link
Contributor

ryelle commented Oct 21, 2024

It's required for this payment processor (Instamojo, in this case).

I've tracked down the issue — on small screens, the admin bar has a .mobile class, which the form's validation was picking up as the input. The admin bar has no input value, so it never validates correctly. Writing up a fix for this now.

@arunpk92
Copy link
Author

Thank you, @ryelle! It's working perfectly now.

@harishankerr
Copy link
Collaborator

Confirming that this is fixed. Major props for sorting this out and that too, in such short time, @ryelle!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants