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

Radios that span a list of forms #146

Open
cimmanon opened this issue Jul 13, 2017 · 0 comments
Open

Radios that span a list of forms #146

cimmanon opened this issue Jul 13, 2017 · 0 comments

Comments

@cimmanon
Copy link
Contributor

I have a number of forms that contain a list of elements, but I want to be able to force that only 1 of the elements can have a True value for a particular field. Such a case would be for a primary or default value from a dynamic list of user submitted values.

radio_lists

My initial thought was that I could do this without modifications to Digestive Functors by having the value for my radio field be the index value of the associated list item, but that would only work for contiguous values. If I have 4 elements in the list but the list of indices I get back is 2,3,5,9, wanting to set list item 3 to true doesn't work because it ends up being the 2nd element in the list I get back after running the form rather than the 4th.

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