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

"String" type item allows entry of new lines, but UI does not handle them #1637

Open
williamito opened this issue Sep 27, 2022 · 0 comments · May be fixed by #2737
Open

"String" type item allows entry of new lines, but UI does not handle them #1637

williamito opened this issue Sep 27, 2022 · 0 comments · May be fixed by #2737
Assignees
Labels
effort:small Small effort - 2 days P2 Medium priority issue type:bug Something isn't working

Comments

@williamito
Copy link
Contributor

Describe the bug
The definition of the "String" type and the UI implemented for it strongly implies it should only be a single line of text, as the "Text" type exists for multi-line text. However, "String" accepts multi-line text input but does not accommodate it visually.

Component
SDC Library

To Reproduce
Steps to reproduce the behavior:

  1. Open any Questionnaire with a "String" item
  2. Type stuff and press "enter", then type more stuff

Expected behavior
Prevent entry of multi-line text, e.g. using android:inputType="text" (see https://stackoverflow.com/questions/31965330/disable-enter-in-edittext-android), or have the text box expand to accommodate it

Screenshots

mutitext.mp4

Smartphone (please complete the following information):

  • Device: any

Would you like to work on the issue?
I think I can do this if it's just editing variables in the layout file

@Tarun-Bhardwaj Tarun-Bhardwaj moved this from New to Backlog in Android FHIR SDK Oct 18, 2022
@Tarun-Bhardwaj Tarun-Bhardwaj added type:bug Something isn't working effort:small Small effort - 2 days P2 Medium priority issue labels Oct 18, 2022
@rahulmalhotra rahulmalhotra self-assigned this Nov 25, 2024
@rahulmalhotra rahulmalhotra linked a pull request Nov 25, 2024 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort:small Small effort - 2 days P2 Medium priority issue type:bug Something isn't working
Projects
Status: Backlog
Development

Successfully merging a pull request may close this issue.

3 participants