surveyjs / surveyjs_angular_cli

SurveyJS + Angular CLI Quickstart Template
http://surveyjs.io/
41 stars 52 forks source link

my barrating answer is not in result,data #24

Open iamfariba opened 5 years ago

iamfariba commented 5 years ago

Hi I have this barraing type question but in sendData(result) in the app.component.ts , result does not have this question and it's answer, i have 3 questions but result has 2 of them and does not have barrating question and it's answer,
{ "type": "barrating", "name": "QuestionTwo-Example", "ratingTheme": "css-stars", "choices": [1, 2, 3, 4, 5] }, Thank you

tsv2013 commented 5 years ago

We've checked our oline demo - https://surveyjs.io/Examples/Library/?id=custom-widget-barrating&platform=jQuery&theme=default And it works ok Please provide us with the steps to reproduce.

iamfariba commented 5 years ago

for me also was working, but i had a few small changes in app.component.ts and a few other files in app folder, **i downloaded your code around end of February 2019 when it was with angular5 1-localhost:4200 2-select 5 start for barrating question which has css-starTheme 3-press complete method 4-error is this: webpack-internal:///./node_modules/@angular/core/esm5/core.js:1665 ERROR RangeError: Maximum call stack size exceeded at QuestionDropdown.Base.getPropertyValueCore (webpack-internal:///./node_modules/survey-angular/survey.angular.js:1502) at QuestionDropdown.Base.getPropertyValue (webpack-internal:///./node_modules/survey-angular/survey.angular.js:1495) at QuestionDropdown.get [as storeOthersAsComment] (webpack-internal:///./node_modules/survey-angular/survey.angular.js:13442) at QuestionDropdown.QuestionSelectBase.getStoreOthersAsComment (webpack-internal:///./node_modules/survey-angular/survey.angular.js:13651) at QuestionDropdown.QuestionSelectBase.rendredValueToData (webpack-internal:///./node_modules/survey-angular/survey.angular.js:13382) at QuestionDropdown.set [as renderedValue] (webpack-internal:///./node_modules/survey-angular/survey.angular.js:13356) at Object.value (eval at createBindingsStringEvaluator (webpack-internal:///./node_modules/survey-angular/survey.angular.js), :3:370) at Object.writeValueToProperty (webpack-internal:///./node_modules/survey-angular/survey.angular.js:4907) at HTMLSelectElement.valueUpdateHandler (webpack-internal:///./node_modules/survey-angular/survey.angular.js:7084) at HTMLSelectElement.dispatch (scripts.bundle.js:5233)

=================, also in list of question i have only these three question: "elements": [ { "type": "barrating", "name": "QuestioName1", "title": "How did you find?", "ratingTheme": "css-stars", "choices": [1, 2, 3, 4, 5], "isRequired": true }, { "type": "barrating", "name": "QuestioName2", "title": "How was your contract?", "ratingTheme": "css-stars", "choices": [1, 2, 3, 4, 5], "isRequired": false }, { "type": "radiogroup", "name": "QuestioName4", "title": "Did you find what you were looking for?", "choices": ["Sure!", "Nah!"], "isRequired": false } ]