-
-
Notifications
You must be signed in to change notification settings - Fork 614
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
Filling form, radio options with same name #811
Comments
Did you find a work around for this? im having the same issue. |
No, I haven't found a method yet. Currently my project is still in proof-of-concept phase, but this will get annoying eventually. |
Ok Thanks! |
This can be done if you use the lower level I would like to provide better support for this though. I've added it to the roadmap for tracking: #998. |
Unfortunately, I don't have time to create a proper PR at this point, so I'm adding this as a comment to this thread for now.
I also have a simple solution that does not require changes to the library, the value can be selected as follows:
This solution worked for me @rienheuver @mtzmlz |
I'm trying to fill out a form from a third-party and they screwed up their form pretty big. When I get the radio group and log the opttons like this:
console.log(form.getRadioGroup('Client 10').getOptions());
I get the following output:
[ 'Keuze', 'Keuze' ]
I.e. they are exactly the same. When I then do
form.getRadioGroup('Client 10').select('Keuze');
It will always select the second option of the radio group. Obviously this form is pretty bad, but it would help a lot if I could select an option based on the index in the options instead of the string.
The text was updated successfully, but these errors were encountered: