Hi,
Below a code that illustrates my problem.
I have this questionnaire JSON Code :
JavaScript{
"title": "my questionnaire",
"pages": [
{
"name": "PAM_questionnaire",
"elements": [
{
"type": "dropdown",
"name": "Target System",
"choices": [
"system1",
"system2,
"system3"
]
},
{
"type": "checkbox",
"name": "VerificationDelegation",
"choices": [
"subsystem1",
"subsystem2,
"subsystem3",
"subsystem4,
"subsystem5",
"subsystem6,
"subsystem7",
"subsystem8,
"subsystem9"
]
}
],
"completeText": "Create/Update !"
}
Now I would like to filter the "VerificationDelegation" questionnaire element choice list base on this json "database" :
JavaScript[
{
"system": "system1",
"uses": ["subsystem1", "subsystem2", "subsystem3"]
},
{
"saosystem": "system2",
"uses": ["subsystem4", "subsystem5", "subsystem6"]
},
{
"saosystem": "system3",
"uses": ["subsystem7", "subsystem8", "subsystem9"]
}
]
I would like to know how to "insert" in JSON Code of the question the JSON database above in order to be able to filter in the "VerificationDelegation" question element choices values using the choicesVisibleIf property.
It is may be trivial, but I'm not a JS developer at all.
Thank in advance for your help