Timeline for Is there a way to add / remove items from an unlimited cardinality field in form alter / after build?
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 2, 2023 at 17:44 | vote | accept | brad.bulger | ||
Dec 29, 2022 at 7:30 | answer | added | 4uk4 | timeline score: 3 | |
Dec 28, 2022 at 22:31 | comment | added | taggartJ | Perhaps you want to look at something like this for add more gist.github.com/baikho/ec206f128eff4322e29a528f741adc74 | |
Dec 28, 2022 at 20:42 | comment | added | 4uk4 | A form alter hook is too late, then the form is already built and it's very difficult to change a complex entity form. Did you try to add/remove the field items in the entity before the form is built? See drupal.stackexchange.com/questions/261328/… | |
Dec 28, 2022 at 18:48 | comment | added | brad.bulger | I'd also like to be able to remove items, but that seems like a whole nother can of worms... | |
Dec 28, 2022 at 18:47 | history | asked | brad.bulger | CC BY-SA 4.0 |