I have a field for which I am populating data using js. The data in user field is being populated from view using ajax call. I want to create a custom widget which can be used to filter and select the values.
like the TypedChoiceField Widget; I want to create TypedSelectField that can be used to filter and select from the options that are populated.
user = forms.CharField(widget= forms.Select(),required=True)
Any ideas on how to create such custom widget.
I tried overriding forms.ChoiceField but it is not working.