[HOLD for payment 2021-12-06] Request a call modal - Update phone number requirements and instructions.
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
- Navigate to the Concierge conversation
- Click on the phone icon on top right
Expected Result:
There should be clear instructions on how to enter a phone number. (Country code, format, etc). Also, the phone number displayed should be the Expensify number (the one user to call customers). Please check @mallenexpensify proposed improvements on notes section.
Actual Result:
Instructions are focused on phone numbers which country code and the phone number displayed is not from Expensify.
Workaround:
None Needed.
Platform:
Where is this issue occurring?
- Web
- iOS
- Android
- Desktop App
- Mobile Web
Version Number: 1.1.8-0 Reproducible in staging?: Yes Reproducible in production?: Yes
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Improvements from @mallenexpensify:
- The example phone number that's misaligned shows you should enter +1 at the beginning but it's not necessary for US numbers. We should update number in the box to remove +1 .
- The number that should be shown in the box should be updated to 2109400803 , a number we actually call from.
- The red error text also states you need to include a country code which you don't if you're in the US (which I'm guessing is ~90% of our calls). Can we update it to "Please enter a phone number. If you're outside the US please include your country code, eg. +44 7782 339811" (which is an actual number we call from in the UK)

Expensify/Expensify Issue URL:
Issue reported by: @quinthar Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1634498711397400
Triggered auto assignment to @chiragsalian (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Triggered auto assignment to @Christinadobrzyn (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
Issue LGTM, should be an easy fix for our external contributors.
Posted job in Upwork
Internal post - https://www.upwork.com/ab/applicants/1450704542045765632/job-details External post - https://www.upwork.com/jobs/~01e8e6ed06b97f3234
Proposal
We need to update the placeholder 2109400803 here,
https://github.com/Expensify/App/blob/7f3153ac0e20a17a4db9d032851246d051ffad8a/src/pages/RequestCallPage.js#L208
We need to update the message here & in es.js also for the same key, https://github.com/Expensify/App/blob/7f3153ac0e20a17a4db9d032851246d051ffad8a/src/languages/en.js#L471
But one question @chiragsalian,
-
The same message is used for other phone number input error messages too, should it be the same on other pages or let alone this page.
-
Should we change here also anything? https://github.com/Expensify/App/blob/7f3153ac0e20a17a4db9d032851246d051ffad8a/src/languages/en.js#L472
Need Spanish copy for the new message.
Proposal LGTM ~i think you forgot to account to correct the misalignment so can you update your proposal to account for this.~ Edit: The misalignment of inputs is handled here.
The same message is used for other phone number input error messages too, should it be the same on other pages or let alone this page.
Yup, it should be the same on all other pages i.e., you can just update noPhoneNumber so that its reflected everywhere. One note though, once you make the changes please test some of the other places where the copy has been updated so that styles are not broken since the updated text is longer.
Should we change here also anything?
Sure yes. I think That doesn’t look like a valid phone number. Please enter a valid phone number. If you're outside the US please include your country code, eg. +44 7782 339811. Not sure if that's too long. I'll let @mallenexpensify chime in. Matt once decided can you ask #espanol for Spanish copies of this and "Please enter a phone number. If you're outside the US please include your country code, eg. +44 7782 339811". Asking you since I'll be OOO for a few days.
Hired @Santhosh-Sellavel for this job 🎉
@chiragsalian Any update here? I'm waiting new copies to update.
Cool, yeah i was hoping matt would chime in. I'll ping him for his input on the copy.
Totally missed this. Do either of you know what formats are valid for US numbers? That will influence the error message. ie.
(562) 728-6666 (562) 7286666 5627286666 562-728-6666 and all the above with either
1or+1before
In our code we don't allow characters like brackets, dash etc So the only valid US numbers are,
5627286666 15627286666 +15627286666
Please enter a valid phone number without brackets or dashes. If you're outside the US please include your country code, eg. +44 7782 339811
I think the above will do for now.
oh also spaces will throw an error, so the example phone number should be +447782339811. You can modify the created PR to allow spaces in phone number as well. Should be a very easy fix to trim them out when needed via code.
Asking for spanish copy.
A nice future update would be to split the phone number into international code and phone number as two separate fields. Then the international code can be intelligently filled based on their location. They can modify it if they wish but it would be nice to see it be smart and auto-filled.
I like that idea Chirag but not sure how it'd best work in practice with us using one box for both email and phone. This is what's on NewDot now.

English copy,
Please enter a valid phone number without brackets or dashes. If you're outside the US please include your country code, eg. +447782339811
Spanish copy,
Por favor, introduce un número de teléfono válido sin paréntesis o guiones. Si reside fuera de Estados Unidos, por favor incluye el prefijo internacional. P. ej. +447782339811
So you should be all set to create the PR right @Santhosh-Sellavel or is there any pending question on your end?
Ah true, I forget we have just one box. Well maybe someday we'll split it like oldDot,

and then perhaps we could implement that logic.
@chiragsalian
The following changes needed to be done in PR right?
-
We need to update the placeholder
2109400803here, https://github.com/Expensify/App/blob/7f3153ac0e20a17a4db9d032851246d051ffad8a/src/pages/RequestCallPage.js#L208 -
Update following error messages to new messages given here
- https://github.com/Expensify/App/blob/7f3153ac0e20a17a4db9d032851246d051ffad8a/src/languages/en.js#L471
- https://github.com/Expensify/App/blob/7f3153ac0e20a17a4db9d032851246d051ffad8a/src/languages/en.js#L472
- Additionally, as you mentioned in comment.
You can modify the created PR to allow spaces in phone numbers as well. Should be a very easy fix to trim them out when needed via code.
For the Request call page box alone or for what other fields? Do we really need this change? Why would we need a space here?
1 and 2 are correct. 3 is not needed. I meant that for the follow-up issue MattAllen created and it looks like he updated the follow-up issue title to reflect the same.
You just need to address your points 1 and 2 for this issue 🙂
Looks like the PR is under review - moving forward with this fix!