Question T7736
Visible to All Users

Check Box Logic

created 3 years ago

Hi,

I am using check box for defining logic and defined login as

  1. If Item 1 equals = question 1
  2. if Item 2 equals = question 2

So in this case I want both Question 1 and Question 2 to displayed, but checkbox dosen't support multiple answers in checkbox.

For ref, please find the attached screenshot and JSON. Kindly help me to get resolved.

{
"pages": [
{
"name": "page1",
"elements": [
{
"type": "checkbox",
"name": "question1",
"title": "Are you sure want attachments",
"choices": [
"item1",
"item2"
]
},
{
"type": "html",
"name": "question2",
"visibleIf": "{question1} = ['item1']",
"html": "<html>\n<head>\n\t<title></title>\n</head>\n<body>\n<p style="text-align:justify"><span style="font-size:14px"><span style="font-family:Times New Roman,Times,serif">[Also, the supplementary information accompanying the <span class="card" style="background-color:#deb406">##FinancialStatementType##</span> will be subjected to the <span class="card" style="background-color:#deb406">##AuditType##</span>ing procedures applied in our <span class="card" style="background-color:#deb406">##AuditType##</span> of the <span class="card" style="background-color:#deb406">##FinancialStatementType##</span> and certain additional procedures, including comparing and reconciling such information directly to the underlying accounting and other records used to prepare the financial statements or to the financial statements themselves, in accordance with <span class="card" style="background-color:#deb406">##AuditType##</span>ing standards generally accepted in the United States of America, and our a<span class="card" style="background-color:#deb406">##AuditType##</span>ors' report will provide an opinion on it in relation to the <span class="card" style="background-color:#deb406">##FinancialStatementType##</span> as a whole.]</span></span></p>\n</body>\n</html>\n"
},
{
"type": "html",
"name": "question3",
"visibleIf": "{question1} = ['item2']",
"html": "<html>\n<head>\n\t<title></title>\n</head>\n<body>\n<p style="text-align:justify"><span style="font-family:Times New Roman,Times,serif"><span style="font-size:11.0pt">[You are responsible for the preparation of the supplementary information in conformity with U.S. generally accepted accounting principles (or indicate other basis of accounting). You agree to include our report on the supplementary information in any document that contains, and indicates that we have reported on, the supplementary information. You also agree to include the </span><span class="card" style="background-color:#deb406">##AuditType##</span></span><span style="font-size:11.0pt"><span style="font-family:"Times New Roman",serif"><span style="font-family:Times New Roman,Times,serif">ed financial statements with any presentation of the supplementary information that includes our report thereon.] </span> </span></span></p>\n</body>\n</html>\n"
}
]
}
]
}

Thanks ,
Hari

Answers approved by surveyjs Support

created 3 years ago

Hello,
You can use contains as: "{question1} contains 'item1' ".

Thank you,
Andrew
SurveyJS Team

    Comments (1)

      Thanks a Lot Andrew