Replies: 2 comments
-
Hi there 👋, Thanks for reaching out. I'd be happy to help, but I might need a little more information. Can you clarify what you mean by “cloning”? Do you want to dynamically insert a new widget into your DOM or is it something else? Best |
Beta Was this translation helpful? Give feedback.
-
Hi, thank you very much for your help. Yes I want to dynamically insert new widgets into the DOM, that are a copies of existing ones. I have a formset as a table. The forms are in the rows and they contain HeavySelect2Widgets. The function above clones such a row. I can provide the templates and views if that helps. Best |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a function, that clones a formset row with HeavySelect2Widgets. After cloning the new widget uses the old dependentFields value for the Ajax call to get the options, although the attributes and data of the new element is updated.
What I am doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions