Red field outlines are not displayed when entering incorrect information
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Issue is failing https://github.com/Expensify/App/pull/4431
Action Performed:
- Navigate to /bank-account/company
- Enter incorrect information in the text fields.
- Submit the form.
Expected Result:
When trying to submit the form, the incorrect field should be highlighted in red.
Actual Result:
No red outline is seen in the incorrect fields after trying to submit the form.
Platform:
Where is this issue occurring?
- Web
Version Number: 1.0.86-2
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:

https://user-images.githubusercontent.com/44479856/129938592-f082c5cb-e40c-46dd-8dd1-25f281fd5438.mp4
Expensify/Expensify Issue URL:
Triggered auto assignment to @aldo-expensify (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
- Identify the pull request that introduced this issue and revert it.
- Find someone who can quickly fix the issue.
- Fix the issue yourself.
Working on this...
I can see in the render method of <CompanyStep> that we pass down the error text like <ExpensiTextInput errorText={error} ...>, then this eventually uses <BaseExpensiTextInput> to render the input. <BaseExpensiTextInput> receives the errorText with the error, but this component doesn't handle this prop.
I saw that there is another component that actually does something with this prop: <TextInputWithLabel>
PR up, I tested in desktop.. seems to work, I'm testing in other platforms now.
How can we get to this view from the Desktop/Mobile native versions? Follow flow VBA flow: Add Bank account, then company.
@aldo-expensify should this have closed?
How can we get to this view from the Desktop/Mobile native versions? Follow flow VBA flow: Add Bank account, then company.
You should be able to get to this step on mobile/desktop using the same information in (3) of this SO
https://stackoverflow.com/c/expensify/questions/342
@aldo-expensify should this have closed?
Hey @kevinksullivan , I think this should be closed, the problem described in this issue was fixed in the PR: https://github.com/Expensify/App/issues/4748
I would suggest opening a new issue/pr if we wanted to work on the show all error messages at the same time stuff.
but the relevant PR is not deployed, correct @aldo-expensify ?
https://github.com/Expensify/App/pull/4741
but the relevant PR is not deployed, correct @aldo-expensify ?
#4741
oh, it has not been deployed , you are right
Reopening this since we found an issue when retesting the fix https://github.com/Expensify/App/pull/4741#issuecomment-904075947
Error message is not displayed for all the fields if multiple fields have incorrect information entered
Expected Result:
The fields which are all have incorrect information should have error message with red border
Actual Result:
Only for the zip code it displays error message, After the zip code field is fixed and clicking Submit next field throws error message. Also there is no error message for City, phone number and Company Address for incorrect information
Actions Performed:
- Navigate to /bank-account/company
- Enter incorrect information in multiple fields (Zip code, phone number, Company Website, Tax ID Number etc
- Submit the form.
Platform:
Web ✔️
Build:
1.0.86-8
Notes/Images/Video:
https://user-images.githubusercontent.com/43996225/130534885-a57f12cc-8a5b-4b7b-86c0-87c295cd81fc.mp4

@aldo-expensify has brought to our attention that the multiple errors should not be expected yet. We are still implementing it so we can remove the deploy blocker label.
I'll investigate what's the problem with the android version, it is not working there, right? Or at least that is what I understand from this: https://github.com/Expensify/App/pull/4741#issuecomment-904075947
Ok I think this is a blocker actually after talking to @aldo-expensify. 😂
Android is failing for some reason so we must figure that out first ? https://github.com/Expensify/App/runs/3403823191?check_suite_focus=true#step:12:1483
This comment is not a blocker and is being handled in https://github.com/Expensify/Expensify/issues/174749 https://github.com/Expensify/App/issues/4730#issuecomment-904217825
I tested this in an android emulator and found this incorrect behaviour:
https://user-images.githubusercontent.com/87341702/130544242-8db867f4-d0c5-4507-986a-dbd91fceda30.mov
Basically, the value of the field with the error disappears, but once we focus it again, the value appears again. Would be good to know if this happens in a real android device.
Yes that is weird. The value of this field should not disappear at all, but is it a regression?
Yes that is weird. The value of this field should not disappear at all, but is it a regression?
I would say it is a regression. In the production app we don't have this red outline with the red message under the field, you just have the growl, and the value of the field doesn't disappear
I just tried it on an android device, and the behaviour is the same (the value disappearing until I touch the field).
There seem to be something with the size of the actual text input, I can scroll inside the "input" and then I see the value.