Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

my barrating answer is not in result,data #24

Open
iamfariba opened this issue May 15, 2019 · 2 comments
Open

my barrating answer is not in result,data #24

iamfariba opened this issue May 15, 2019 · 2 comments
Labels

Comments

@iamfariba
Copy link

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
Copy link
Member

tsv2013 commented May 15, 2019

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
Copy link
Author

iamfariba commented May 16, 2019

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
}
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants