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

initialValue on MultiSelectFormField not working! #19

Open
jabedbd opened this issue Jul 7, 2020 · 2 comments
Open

initialValue on MultiSelectFormField not working! #19

jabedbd opened this issue Jul 7, 2020 · 2 comments

Comments

@jabedbd
Copy link

jabedbd commented Jul 7, 2020

I have tried to set initialValue value on MultiSelectFormField. but it's not working.

My dataset was like:
dataSource: [ { "display": "Running", "value": "1", } ]

And the initialValue is set to
[1]

@jtmuller5
Copy link

You need to set the initialValue to ["1"] for it to recognize it.

@david-kalbermatten
Copy link

To elaborate on @jtmuller5's answer...
If you set dataSource: [ { "display": "Running", "value": "1", } ], your "value" will be of type String. This means you need to match the type in your initalValue-List.

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

3 participants