Re: Select Field With Other option

2015-01-28 Thread trubliphone
I have done something fairly similar. I wound up using two separate fields (rather than a single MultiValueField). The first one is based on a TextField and its formfield is based on a MultipleChoiceField. On form creation of forms that use this field, I append [("_OTHER", "---OTHER---")] to

Re: Select Field With Other option

2015-01-27 Thread Karim
On Wed, Jan 28, 2015 at 4:28 PM, Sergiy Khohlov wrote: > You can not do it directly. This should be do by JavaScript's using at > HTML side. All field s are added to form and some of them are hidden. > ​Is not possible to use crispy forms and change the widget with the Field() object? http://dja

Re: Select Field With Other option

2015-01-27 Thread Sergiy Khohlov
You can not do it directly. This should be do by JavaScript's using at HTML side. All field s are added to form and some of them are hidden. 27 січ. 2015 00:29, користувач "Paul Royik" написав: > I need to build a form field with a special select field. > Select field should have option other on

Select Field With Other option

2015-01-26 Thread Paul Royik
I need to build a form field with a special select field. Select field should have option other on which text field is shown. After entering value in textfield, it should be validated, saved and then refered to initial form. How this can be done? I'm trying to override MultiValueField and Mult