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

Multiple trigger not working for checkboxes #45

Closed
mirmdasif opened this issue Jul 31, 2016 · 2 comments
Closed

Multiple trigger not working for checkboxes #45

mirmdasif opened this issue Jul 31, 2016 · 2 comments

Comments

@mirmdasif
Copy link

Sample json working on survey builder broken in latest build
{
pages: [
{
name: "page1",
questions: [
{
type: "checkbox",
choices: [
"one",
{
value: "two",
text: "second value"
},
{
value: "three",
text: "third value"
}
],
name: "question1"
},
{
type: "text",
name: "question2",
visible: false
},
{
type: "text",
name: "question3",
visible: false
},
{
type: "text",
name: "question4",
visible: false
}
]
}
],
triggers: [
{
type: "visible",
operator: "contains",
value: "one",
name: "question1",
questions: [
"question2"
]
},
{
type: "visible",
operator: "contains",
value: "two",
name: "question1",
questions: [
"question3"
]
}
]
}

@mirmdasif
Copy link
Author

Screenshot from survey builder site release version v0.9.9
screenshot-surveyjs org 2016-07-31 19-59-39

Screenshot from latest build

screenshot-localhost 63343 2016-07-31 20-00-37
screenshot-localhost 63343 2016-07-31 20-00-18

andrewtelnov added a commit that referenced this issue Jul 31, 2016
@andrewtelnov
Copy link
Member

andrewtelnov commented Jul 31, 2016

Yes, indeed. The survey checkbox value was stored in the survey data as a link on itself. As result they were modifying at the same time and the new check doesn't work.
I have written the unit test and fix it.
Thank you very much!
Andrew-

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

No branches or pull requests

2 participants