surveyjs / custom-widgets

The collection of custom widgets for SurveyJS: Survey Library and Survey Creator :package:
https://surveyjs.io
MIT License
79 stars 77 forks source link

icheck: Checkbox with "hasOther" -- text input does not become visible when selecting Other #80

Open akrapacs opened 6 years ago

akrapacs commented 6 years ago

I'm using the icheck widget and a Checkbox question type with the hasOther feature enabled. When you select the "Other" option the text input box does not appear.

Sample survey I'm using to reproduce: {"pages":[{"name":"page1","elements":[{"type":"checkbox","name":"question1","title":"Checkbox with other option","hasOther":true,"choices":[{"value":"item1","text":"Item 1"},{"value":"item2","text":"Item 2"},{"value":"item3","text":"Item 3"}]}]}]}

dmitry-kurmanov commented 6 years ago

@akrapacs we don't have this functionality in all widgets, it is not a bug but enhancement

ratankuet commented 5 years ago

I have the same issue. When I select "Other" from the dropdown, the additional other text box does not appear whereas it should appear. Rather it appears when you select "Other" from dropdown and then switch back to any other option from the dropdown. The additional textbox should appear when you select "Other" option from the dropdown and it should disappear when you choose any other option rather than "Other". It seems to be a bug. It is working properly for SurveyJS standard dropdown but not working for Select2 dropdown when we select Render As = "Select2" from Survey settings.

image