- Issue created by @justcaldwell
- Merge request !2Set the entity selection widget cardinality to 1 β (Merged) created by justcaldwell
- Status changed to Needs review
8 months ago 6:21pm 9 April 2024 - πΊπΈUnited States justcaldwell Austin, Texas
The MR sets the widget cardinality to 1.
As noted above, 'Use field cardinality' option would need to enabled in any entity browser views used for linking.
- First commit to issue fork.
-
askibinski β
committed d2455a9d on 1.0.x authored by
justcaldwell β
[#3439719] Set the entity selection widget cardinality to 1
-
askibinski β
committed d2455a9d on 1.0.x authored by
justcaldwell β
- Status changed to Fixed
8 months ago 8:25am 10 April 2024 - π³π±Netherlands askibinski
Thanks! Merged! This was indeed something that bothered me too, didn't now about the cardinality setting!
Reviewed and tested this. It keeps working with checkboxes even if you forgt to set that option, so that's nice. Updated the README and project page to include this information.
- πΊπΈUnited States justcaldwell Austin, Texas
Quick follow-up: I noticed today that if the view results get updated (e.g. by changing an exposed filter value), the cardinality gets 'lost' and selection widgets go back to checkboxes on the refreshed results. I tried a few different views hooks (there are so many!) to try to address this with no luck. I'll keep poking at it as time allows.
As you mention in one of your comments, another solution would be to add some javascript to transform the radios/checkboxes to buttons that just immediately submit the form. I may take a pass at that too.
I'll open a new issue at some point, if no one beats me to it.
Automatically closed - issue fixed for 2 weeks with no activity.