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

Fix multi select widget with no-buttons appearance #5824

Merged
merged 2 commits into from
Nov 16, 2023

Conversation

seadowg
Copy link
Member

@seadowg seadowg commented Nov 6, 2023

Closes #5821

Why is this the best possible solution? Were any other approaches considered?

All widget implementations need to call widgetValueChanged() whenever their state changes for things like field list calculations to work and the call was simply missing in this case.

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

Shouldn't change anything other than fixing the issue! It'd be good to have a quick poke around with other appearance combos for widgets in general to see if we can find any other problematic ones.

Before submitting this PR, please make sure you have:

  • added or modified tests for any new or changed behavior
  • run ./gradlew checkAll and confirmed all checks still pass OR confirm CircleCI build passes and run ./gradlew connectedDebugAndroidTest locally.
  • added a comment above any new strings describing it for translators
  • verified that any code or assets from external sources are properly credited in comments and/or in the about file.
  • verified that any new UI elements use theme colors. UI Components Style guidelines

@seadowg seadowg changed the base branch from master to v2023.3.x November 6, 2023 16:32
@seadowg seadowg marked this pull request as ready for review November 6, 2023 16:53
@seadowg seadowg requested a review from grzesiek2010 November 6, 2023 16:53
@seadowg seadowg requested a review from grzesiek2010 November 7, 2023 10:07
@srujner
Copy link

srujner commented Nov 16, 2023

Should the answer be saved after I uncheck and check again?

XRecorder_16112023_114109.mp4

@seadowg
Copy link
Member Author

seadowg commented Nov 16, 2023

Should the answer be saved after I uncheck and check again?

Good question? What's the behaviour like in older versions?

@dbemke
Copy link

dbemke commented Nov 16, 2023

What's the behaviour like in older versions?

Select with no buttons didn't work in previous version (can't compare) but I changed the form so that there are buttons and compared it with this - the hidden answer is present until saving the form, after saving the form if the question was hidden the answer isn't saved... so it's the same I guess

@seadowg
Copy link
Member Author

seadowg commented Nov 16, 2023

but I changed the form so that there are buttons and compared it with this - the hidden answer is present until saving the form, after saving the form if the question was hidden the answer isn't saved... so it's the same I guess

I think if the behaviour is consistent we're ok here. As long as the question is properly irrelevant, it shouldn't matter that the answer is "remembered". I guess in some cases that would actually be really useful!

@dbemke
Copy link

dbemke commented Nov 16, 2023

Tested with Success!

Verified on Android 10

Verified Cases:

@srujner
Copy link

srujner commented Nov 16, 2023

Tested with Success!

Verified on Android 13

@grzesiek2010 grzesiek2010 merged commit 6967465 into getodk:v2023.3.x Nov 16, 2023
6 checks passed
seadowg pushed a commit to seadowg/collect that referenced this pull request Nov 30, 2023
Fix multi select widget with no-buttons appearance
seadowg pushed a commit to seadowg/collect that referenced this pull request Dec 7, 2023
Fix multi select widget with no-buttons appearance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Questions are not updated if select_multiple used with no-buttons appearance on a field-list
4 participants