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

Booleans don't work as expected in radiomode #5534

Closed
PixelDonut opened this issue Jan 19, 2023 · 0 comments · Fixed by #5554
Closed

Booleans don't work as expected in radiomode #5534

PixelDonut opened this issue Jan 19, 2023 · 0 comments · Fixed by #5554
Assignees
Labels
Milestone

Comments

@PixelDonut
Copy link

Are you requesting a feature, reporting a bug or asking a question?

Reporting a Bug related to #5471 & #5343 (third time's a charm?)

What is the current behavior?

The second question doesn't show when the first question is true. And when the 1st question is selected as true, you can't select false on that question. (see Plunker for clarification)

What is the expected behavior?

That the second question is shown when the first question is answered positively.
And when the first question is selected as true, it can still be changed to false.

How would you reproduce the current behavior (if this is a bug)?

Make the browser window smaller, so it shows the boolean as two radio buttons instead of the slider. Then answer the first question. The second question does not pop up

Provide the test code and the tested page URL (if applicable)

Tested page URL:
https://plnkr.co/edit/TxoXnlTg3WXwD9QN

Test code

const json = {
 "elements": [
    {
            "type": "boolean",
            "name": "*question",
            "isRequired": true,
            "title": "title",
            "labelTrue": "Yes",
            "labelFalse": "No" ,
            "valueTrue": 2,
            "valueFalse": 0,
            "renderAs": "radio"
        },{
            "type": "boolean",
            "name": "question1",
            "isRequired": true,
            "visibleIf": "{*question} = 2",
            "title": "title2",
            "labelTrue": "Yes",
            "labelFalse": "No",
            "valueTrue": 3,
            "valueFalse": 2,
             "renderAs": "radio"
        }]
};

Specify your

  • browser: Google Chrome
  • browser version: 109.0.5414.87
  • surveyjs platform (angular or react or jquery or knockout or vue): react
  • surveyjs version: 1.9.69
@novikov82 novikov82 self-assigned this Jan 19, 2023
@novikov82 novikov82 added the bug label Jan 19, 2023
novikov82 added a commit that referenced this issue Jan 24, 2023
novikov82 added a commit that referenced this issue Jan 24, 2023
novikov82 added a commit that referenced this issue Jan 24, 2023
novikov82 added a commit that referenced this issue Jan 24, 2023
andrewtelnov added a commit that referenced this issue Jan 24, 2023
…as-expected-in-radiomode

#5534 Booleans don't work as expected in radiomode
@OlgaLarina OlgaLarina added this to the v1.9.70 milestone Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants