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

Boolean question appears incorrectly when it shares the value with a Radio Button Group question #8333

Closed
JaneSjs opened this issue May 30, 2024 · 0 comments · Fixed by #8337
Assignees
Labels
Milestone

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented May 30, 2024

View Demo

{
 "pages": [
  {
   "name": "page1",
   "elements": [
    {
     "type": "boolean",
     "name": "question1"
    },
    {
     "type": "radiogroup",
     "name": "question1",
     "choices": [
      {
       "value": "Item 1",
       "text": "Yes"
      },
      {
       "value": "Item 2",
       "text": "No"
      }
   ]
    }
   ]
  }
 ]
}

Steps to reproduce:

  • Click Yes for the Boolean question.
    image

  • Select Yes for Radiogroup.

  • A Boolean appears as follows.
    image


Another usage scenario: valueTrue and valueFalse are specified.
https://plnkr.co/edit/zRqq7omJ5MdG6PF9

{
 "pages": [
  {
   "name": "page1",
   "elements": [
    {
     "type": "boolean",
     "name": "question1",
     "valueTrue": "yes",
     "valueFalse": "no"
    },
    {
     "type": "radiogroup",
     "name": "question1",
     "choices": [
      {
       "value": "yes",
       "text": "Yes"
      },
      {
       "value": "no",
       "text": "No"
      }
   ]
    }
   ]
  }
 ]
}
@JaneSjs JaneSjs added bug user issue An issue or bug reported by users labels May 30, 2024
@JaneSjs JaneSjs self-assigned this May 30, 2024
@JaneSjs JaneSjs added question bug and removed bug user issue An issue or bug reported by users question labels May 30, 2024
@JaneSjs JaneSjs removed their assignment May 30, 2024
@JaneSjs JaneSjs closed this as completed May 30, 2024
@JaneSjs JaneSjs reopened this May 30, 2024
@tsv2013 tsv2013 self-assigned this May 30, 2024
tsv2013 pushed a commit that referenced this issue May 30, 2024

Unverified

The committer email address is not verified.
@JaneSjs JaneSjs changed the title Boolean Question appers incorrectly Boolean Question appears incorrectly when it shares the value with a Radiogroup question May 30, 2024
andrewtelnov added a commit that referenced this issue May 31, 2024
…urvey

Fixed #8333 - Boolean Question appers incorrectly
@RomanTsukanov RomanTsukanov changed the title Boolean Question appears incorrectly when it shares the value with a Radiogroup question Boolean question appears incorrectly when it shares the value with a Radio Button Group question Jun 6, 2024
@OlgaLarina OlgaLarina added this to the v1.11.1 milestone Jun 19, 2024
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