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

Create address inputs example for the tennis club membership form #8224

Open
rikukissa opened this issue Dec 16, 2024 · 0 comments
Open

Create address inputs example for the tennis club membership form #8224

rikukissa opened this issue Dec 16, 2024 · 0 comments
Labels

Comments

@rikukissa
Copy link
Member

rikukissa commented Dec 16, 2024

Description

So something similar to this:

Image

Let's implement two new input types to do this, namely

  • COUNTRY basically just a select that lists countries
  • LOCATION select that lists country configured locations
    • can be given a partOf option that is used then to filter the shown options

These both have to be in packages/client as they aren't reusable as such.
If at this point if the radio input for switching between Rural and Urban is not created, add that in as well.

{
  id: 'applicant.address.country',
  type: 'COUNTRY',
  required: true,
},
{
  id: 'applicant.address.province',
  type: 'LOCATION',
  required: true,
  options: {
    partOf: {$data: 'applicant.address.country'}
  }
},
{
  id: 'applicant.address.district',
  type: 'LOCATION',
  required: true,
  options: {
    partOf: {$data: 'applicant.address.province'}
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

1 participant