-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Mark required questions using an asterisk #1828
Conversation
why not use different color for asterisk to get more attention from user |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine to me.
It could be red but I'm not sure what's better...Who thinks it should be red? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a pretty cool feature!
I think we should put the * at the beginning. Putting it at the end of long questions or small screens means it's hidden, which defeats the purpose of letting the user know before a swipe.
I think an Android red (probably the same as when you reset the app) would work better because it catches the user's attention.
I think questions that have no label text (e.g., media only questions) and are required should also have the *. Currently, they don't.
I implemented required changes. Here is a form for testing: |
980c33d
to
af6020f
Compare
I like what you've done with the red! I think questions that have no label text (e.g., media only questions) and are required should also have the *. Currently, they don't and it'd be good to include that in your test file. Also good to include is a form with multiple questions so we can verify how that looks. If I try to swipe to the
|
af6020f
to
c26c8b5
Compare
silly bug, it's fixed. Sorry.
It works in that way. If you have required question without a label you can see an asterisk before hint but if both are not specified (label + hint) there is only an asterisk. Please check those questions after that NPE. |
e162065
to
079392f
Compare
079392f
to
b2f7b97
Compare
Tested with success! Verified on Android: 4.1, 4.2, 4.4, 5.1, 6.0, 7.0, 8.0 |
@opendatakit-bot unlabel "needs testing" |
getodk#1828 marks required questions with an asterisk so the label text no longer matched. Since the form is supposed to focus on question types rather than modifiers, removing the required makes sense.
getodk#1828 marks required questions with an asterisk so the label text no longer matched. Since the form is supposed to focus on question types rather than modifiers, removing the required makes sense.
getodk#1828 marks required questions with an asterisk so the label text no longer matched. Since the form is supposed to focus on question types rather than modifiers, removing the required makes sense.
Closes #1827
What has been done to verify that this works as intended?
I tested All Widgets form where the last question is required.
Why is this the best possible solution? Were any other approaches considered?
Are there any risks to merging this code? If so, what are they?
No.
Do we need any specific form for testing your changes? If so, please attach one.
I used All widgets form.