Skip to content

Creating Multi-select input

Matt Brevetti requested to merge issue_285_multiselect_inputs into main

License and Copyright Notice

By submitting this issue or commenting on this issue, or contributing any content to this issue, you certify under the Developer Certificate of Origin that the content you post may be licensed under GPLv3 (for code) or CC-BY-SA 4.0 International (for non-code content).

Branch Name

issue_285_multiselect_inputs

Related Issues

Closes #285 (closed)

Description

This will create the logic / layout necessary to implement a 'multi-select' field. This will basically be a spinner field that works like check boxes.

Steps to Test

  1. View the MultiSelectSpinner.java class under GuestDataBaseRegistration -> UIClasses. You can view the getters and setters and get a feel for how the class works.
  2. Open the AVD and navigate to the Guest Registration Form
  3. Fill out the first 2 fragments.
  4. On fragment 3, click on any of the fields that say "select all that apply"
  5. You should see a popup with a list of choices. Select a non-zero amount of selections.
  6. Tap outside of the popup to close (or press back button). You should see your selections in a comma separated list in the field.
  7. Open the same field again and change your selections. Close and confirm they changed in the text box.
  8. Repeat this and confirm that you can select and deselect items continuously.

As an extra, you can call the 'getSelectedStrings()' method in the MultiSelectSpinner class to verify that the data is being stored in the instance of the class. However, a version of this is already running in order to display the selections in the text box.

Relevant Screenshots

Multiselect Popup No Selections:
image

Multiselect Popup With Selections:
image

Fragment View with Selections Entered:
image

Relevant Logs

(Paste any relevant logs here.)

Developer Notes

(List any notes you have about what you did here using bullets, for ex:)

  • Note 1
  • Note 2
  • Note 3
Edited by Matt Brevetti

Merge request reports