ImageChooserField does not work in nested forms.
See original GitHub issueAfter this feature we are able to create nested related objects in the same form. But when we use ImageChooserField at the second level or deeper - Wagtail shows regular select instead of ImageChooserField
. On the screenshot, ImageChooserField
is setted for the logo
field.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:15 (4 by maintainers)
Top Results From Across the Web
Doesn't seem to work in Nested Forms - WordPress.org
Anyone else having this problem? maybe because I have a lot of Address fields, I get a console error with nested form field...
Read more >Issues with nested forms - Stack Overflow
A few things to look at. first, this function: $('form').on('click', '.add_fields', function(event) { let regexp, time; time = new Date().
Read more >Form Layout | Nested | JET Developer Cookbook - Oracle
A form layout manages the layout of labels and fields in a form. This shows nested forms. To see responsive behavior try one...
Read more >Nested Forms in Rails - The Lean Software Boutique
Have you ever had to deal with complex forms creating multiple objects ... If you try that code as is, it won't work...
Read more >Angular: Nested Reactive Forms Using ... - Medium
We have successfully integrated our nested child form control into our Angular Core. But there is still one problem. Even though our place...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Got SnippetChooserPanel working with this:
Basically the nested-second-layer InlinePanel wasn’t providing the Page model with any widgets, while the first layer InlinePanel was doing so. Haven’t tested it with different combinations (third layer, all layers having custom panels, etc).
The suggestion above for creating a custom
InlinePanel
worked in my case, as such:One thing of note is that the
title
andhelp_text
don’t work with the customNestedInlinePanel
.