{"action":"created","issue":{"url":"https://api.github.com/repos/surveyjs/surveyjs/issues/1041","repository_url":"https://api.github.com/repos/surveyjs/surveyjs","labels_url":"https://api.github.com/repos/surveyjs/surveyjs/issues/1041/labels{/name}","comments_url":"https://api.github.com/repos/surveyjs/surveyjs/issues/1041/comments","events_url":"https://api.github.com/repos/surveyjs/surveyjs/issues/1041/events","html_url":"https://github.com/surveyjs/surveyjs/issues/1041","id":312811208,"number":1041,"title":"Custom widgets not rendering correctly when upgrading from v.1.0.14 to v.1.0.15+","user":{"login":"nicklas669","id":4216390,"avatar_url":"https://avatars1.githubusercontent.com/u/4216390?v=4","gravatar_id":"","url":"https://api.github.com/users/nicklas669","html_url":"https://github.com/nicklas669","followers_url":"https://api.github.com/users/nicklas669/followers","following_url":"https://api.github.com/users/nicklas669/following{/other_user}","gists_url":"https://api.github.com/users/nicklas669/gists{/gist_id}","starred_url":"https://api.github.com/users/nicklas669/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicklas669/subscriptions","organizations_url":"https://api.github.com/users/nicklas669/orgs","repos_url":"https://api.github.com/users/nicklas669/repos","events_url":"https://api.github.com/users/nicklas669/events{/privacy}","received_events_url":"https://api.github.com/users/nicklas669/received_events","type":"User","site_admin":false},"labels":[{"id":247746343,"url":"https://api.github.com/repos/surveyjs/surveyjs/labels/bug","name":"bug","color":"fc2929","default":true},{"id":590586921,"url":"https://api.github.com/repos/surveyjs/surveyjs/labels/can't%20reproduce","name":"can't reproduce","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-10T07:56:34Z","updated_at":"2018-04-30T08:26:11Z","closed_at":null,"author_association":"NONE","body":"### Are you requesting a feature, reporting a bug or ask a question?\r\nBug/question\r\n\r\nHi SurveyJS team.\r\n\r\nWe have some custom widgets that we have developed using version 1.0.14 of your plugin. When we upgrade to version 1.0.15 or 1.0.16, our widgets no longer render correctly.  E.g.: We have a \"dropdown widget\" which renders as a select list and fetches some data on load which is put into the select list. In v.14 this worked well but in v.15 the question element is rendered as a input tag instead of our wanted selected tag. Below are some images of what I have tried to describe.\r\n\r\nBelow is a snippet of our dropdown widget. It can be seen that the 5th parameter defines the HTML markup, htmlTemplate, that our widget should produce:\r\n![markup](https://user-images.githubusercontent.com/4216390/38543199-2f50ccde-3ca4-11e8-947a-f3e76b7f9c51.PNG)\r\n\r\nWorking dropdown widget in v.14:\r\n![working dropdown](https://user-images.githubusercontent.com/4216390/38543065-cde0e59c-3ca3-11e8-8122-4a15fb6117d6.PNG)\r\n\r\nSame dropdown widget in v.15:\r\n![image](https://user-images.githubusercontent.com/4216390/38543059-c7c09982-3ca3-11e8-83fa-486cb93904e9.png)\r\n\r\nI have looked at the difference in the generated HTML markup, the difference can be seen on the following link. The markup on the left is the widget in v.14 and the markup on the right is the same widget in v.15: [http://www.mergely.com/BdcMLl2e/](http://www.mergely.com/BdcMLl2e/)\r\n\r\nIt looks like there is automatically inserted a <input> field on questions now or something? I hope you can give me some hints as to what is happening..\r\n\r\nKind regards,\r\nNicklas\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/surveyjs/surveyjs/issues/comments/385338132","html_url":"https://github.com/surveyjs/surveyjs/issues/1041#issuecomment-385338132","issue_url":"https://api.github.com/repos/surveyjs/surveyjs/issues/1041","id":385338132,"user":{"login":"nicklas669","id":4216390,"avatar_url":"https://avatars1.githubusercontent.com/u/4216390?v=4","gravatar_id":"","url":"https://api.github.com/users/nicklas669","html_url":"https://github.com/nicklas669","followers_url":"https://api.github.com/users/nicklas669/followers","following_url":"https://api.github.com/users/nicklas669/following{/other_user}","gists_url":"https://api.github.com/users/nicklas669/gists{/gist_id}","starred_url":"https://api.github.com/users/nicklas669/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicklas669/subscriptions","organizations_url":"https://api.github.com/users/nicklas669/orgs","repos_url":"https://api.github.com/users/nicklas669/repos","events_url":"https://api.github.com/users/nicklas669/events{/privacy}","received_events_url":"https://api.github.com/users/nicklas669/received_events","type":"User","site_admin":false},"created_at":"2018-04-30T08:26:11Z","updated_at":"2018-04-30T08:26:11Z","author_association":"NONE","body":"Hi @tsv2013 . I am not quite sure what you are asking for but I have tried to extract the information you asked for. It can be seen in this diff (v.14 on the left, v.15 on the right): [http://www.mergely.com/Tm8lnuVO/](http://www.mergely.com/Tm8lnuVO/). It looks like there is no difference here?\r\n\r\nThe JSON for our question is the following:\r\n```\r\n {\r\n  \"pages\": [\r\n    {\r\n      \"elements\": [\r\n        {\r\n          \"type\": \"dropdownChoiceWidget\",\r\n          \"name\": \"1525075935799\",\r\n          \"visibleIf\": \"\",\r\n          \"validators\": [\r\n            {\r\n              \"type\": \"dropdownChoiceWidgetvalidator\"\r\n            }\r\n          ],\r\n          \"title\": {\r\n            \"da-DK\": \"Vælg speciel indklaget\"\r\n          },\r\n          \"dropdownurl\": \"External/Complaint/GetListOfSpecialRespondents\",\r\n          \"help\": {\r\n            \"da-DK\": \"\"\r\n          },\r\n          \"description\": {\r\n            \"da-DK\": \"\"\r\n          },\r\n          \"tag\": \"\",\r\n          \"isRequired\": true\r\n        }\r\n      ]\r\n    }\r\n  ],\r\n  \"questionTitleTemplate\": \"{title} {require}\",\r\n  \"showCompletedPage\": false,\r\n  \"templateName\": \"Testing survey version change\"\r\n}\r\n```\r\n\r\nThanks in advance,\r\nNicklas\r\n"}}
{"actor":{"display_login":"nicklas669"}}