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

MULTI_CHOICE type in preset / profile rendered as simple text input in PoI form #175

Open
answerquest opened this issue Nov 23, 2018 · 1 comment

Comments

@answerquest
Copy link

Description:
MULTI_CHOICE type in preset / profile rendered as simple text input in PoI form.

Steps to reproduce:

  1. On the phone, start the app, open Menu > Load Profile
  2. Choose "toilets preset" at bottom.
  3. Back on the app screen, zoom to a place.
  4. Find an existing toilet and open it to "Edit poi", or create a new "Public toilets" poi and place it and press tickmark on top right.
  5. Form screen: Second question : "Toilets:position". Tap that.
  6. There is just a simple text input there.
  7. But in the preset code on h2geo-presets it's supposed to be a multiple choice question.
  8. User ought to have some way of seeing the available options, but there isn't any. User has to type in fresh text. No auto-suggest either.
  9. This renders the MULTI_CHOICE type in the preset as equal to a simple text input.

Expected behavior:
Multiple choice options with checkboxes

Actual behavior:
simple text input, no clues about the options available

Relevant code snippet:
Preset for toilets: https://github.com/jawg/h2geo-presets/blob/master/presets/toilets.yml#L53

          - key: toilets:position
            type: MULTI_CHOICE
            description:
              default: Position of usage
              fr: La position d'utilisation
              en: Position of usage
            values:
              - seated:
                  default: seated
                  fr: Assis
                  en: Seated
              - squat:
                  default: squat
                  fr: Accroupi
                  en: Squat
              - urinal:
                  default: urinal
                  fr: Debout (urinoir)
                  en: Urinal
            required: false

Environment:

  • Device: Alcatel_4060A (cross-checked other multiple-choice inputs in device's default web browser, works there.)
  • Android version: 5.1.1

Version:
v3.0.23

@answerquest
Copy link
Author

@loicortola kindly check this out. Please advise if I should move this issue to the h2geo-presets repo instead. I've created a placeholder there for folks who may be using a preset and find the same problem: jawg/h2geo-presets#44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant