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

Conditional field display based on tags #5581

Closed
quincylvania opened this issue Dec 9, 2018 · 2 comments
Closed

Conditional field display based on tags #5581

quincylvania opened this issue Dec 9, 2018 · 2 comments
Labels
bluesky Bluesky issues are extra challenging - this might take a while or be impossible field An issue with a field in the user interface

Comments

@quincylvania
Copy link
Collaborator

quincylvania commented Dec 9, 2018

Sometimes it only makes sense to display a field if certain tags are present on the feature. For example, the Payment Types field would be useful on presets such as Parking Lot, Telephone, or Toilets, but only when fee=yes. Another use would be in #5580, where the field for diet:vegetarian would be redundant if diet:vegan=yes.

I propose finding a generalized solution where conditions can be defined in JSON and not in code.

Related: #4871

@quincylvania quincylvania added the field An issue with a field in the user interface label Dec 9, 2018
@bhousel
Copy link
Member

bhousel commented Dec 9, 2018

This sounds really hard..

@bhousel bhousel added the bluesky Bluesky issues are extra challenging - this might take a while or be impossible label Dec 9, 2018
@quincylvania
Copy link
Collaborator Author

@bhousel Perhaps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bluesky Bluesky issues are extra challenging - this might take a while or be impossible field An issue with a field in the user interface
Projects
None yet
Development

No branches or pull requests

2 participants