Re: Widgets not working for dynamically added formset forms

2019-10-08 Thread Dmitri S.
At first I hoped not to dive in JS and mostly use django things, but ok, now I see it's not that simple. Thanks for help. вторник, 8 октября 2019 г., 16:49:08 UTC+3 пользователь lemme smash написал: > > okay, i think i got it. you probably need to provide some snippet to > reload list of choice

Re: Widgets not working for dynamically added formset forms

2019-10-08 Thread lemme smash
okay, i think i got it. you probably need to provide some snippet to reload list of choices to newly added form. try to look some examples of using django-select2 with formsets... by pure js i mean not necessarily vanila js, but pure client code, without rendering templates on server. all the p

Re: Widgets not working for dynamically added formset forms

2019-10-06 Thread Dmitri S.
I meant, when I click on Select2 widget (combobox with autocomplete), list of items does not show up. And when I click on calendar icon, calendar does not show up. "It's better to use pure js" - what do you mean exactly? to make new forms duplicating existing rather than using django empty_form

Re: Widgets not working for dynamically added formset forms

2019-10-06 Thread Dmitri S.
I meant, when I click on Select2 widget (combobox), list of items does not show up. And when I click on calendar icon, calendar does not show up. "It's better to use pure js" - what to you mean exactly? воскресенье, 6 октября 2019 г., 17:42:49 UTC+3 пользователь lemme smash написал: > > okay, b

Re: Widgets not working for dynamically added formset forms

2019-10-06 Thread lemme smash
okay, but what you actually mean by "widgets don't work"? also, from my experience I can say that when you have to work with some dynamic forms is't much better to use pure js on client and only validate it on backend On Tuesday, October 1, 2019 at 11:41:28 PM UTC+3, Dmitri S. wrote: > > I have

Re: Widgets not working for dynamically added formset forms

2019-10-04 Thread Dmitri S.
and after clicking on widgets also no errors пятница, 4 октября 2019 г., 17:58:22 UTC+3 пользователь Dmitri S. написал: > > Unchecked runtime.lastError: The message port closed before a response was > received. in Opera after page loading for the first time and no errors in > Chrome. When I add

Re: Widgets not working for dynamically added formset forms

2019-10-04 Thread Dmitri S.
Unchecked runtime.lastError: The message port closed before a response was received. in Opera after page loading for the first time and no errors in Chrome. When I add new form no other errors appear. пятница, 4 октября 2019 г., 10:41:58 UTC+3 пользователь lemme smash написал: > > and you have n

Re: Widgets not working for dynamically added formset forms

2019-10-04 Thread lemme smash
and you have no errors in browser console? On Tuesday, October 1, 2019 at 11:41:28 PM UTC+3, Dmitri S. wrote: > > I have a formset with fields with Select2 widgets and a calendar > (date-picker) from django app. > > And I use dynamic addition of formset forms. > > > When I render a template for t

Widgets not working for dynamically added formset forms

2019-10-01 Thread Dmitri S.
I have a formset with fields with Select2 widgets and a calendar (date-picker) from django app. And I use dynamic addition of formset forms. When I render a template for the first time, all widgets work fine. *But when I add new formset form, widgets of this new form don't work.* I think, th