Re: Dynamic choice option for select filed in Multivaluefield

2016-10-15 Thread Constantine Covtushenko
Hi Saranya, Please try in TestForm > self.fields['t'].fields[1].widget.choices = ((1,1),) Hope it helps On Fri, Oct 14, 2016 at 9:31 AM, saranya k wrote: > I want to set choices for ChoiceField in MultiValueField in form init. But > its not getting updated. > class TestField(forms.MultiValueF

Dynamic choice option for select filed in Multivaluefield

2016-10-14 Thread saranya k
I want to set choices for ChoiceField in MultiValueField in form init. But its not getting updated. class TestField(forms.MultiValueField): def __init__(self,*args, **kwargs): error_messages = { 'incomplete': 'incomplete', } a = forms.ChoiceField(choices=