"I have two dropdowns: one is 'module' and the other is 'select'. My requirement is that when I select values from the module dropdown, the selected values should become the title of the select dropdown. How can I achieve that?"
JSON{
"logoPosition": "right",
"pages": [
{
"name": "page1",
"elements": [
{
"type": "panel",
"name": "panel1",
"elements": [
{
"type": "text",
"name": "title",
"title": "Title",
"hideNumber": true,
"isRequired": true
},
{
"type": "text",
"name": "description",
"title": "Description",
"hideNumber": true,
"isRequired": true
},
{
"type": "dropdown",
"name": "module",
"title": "Module",
"hideNumber": true,
"choices": [
{
"value": "vehicle",
"text": "Vehicle"
},
{
"value":"game",
"text":"Game"
}
]
},
{
"type": "dropdown",
"name": "select",
"visibleIf": "{module} notempty",
"title": "{moduleTitle}",
"hideNumber": true,
"defaultValueExpression": "getSelectedText('module')",
"choices": [
{
"value": "cars",
"text": "Car"
},
{
"value": "bike",
"text": "bike"
},
]
}
]
}
]
}
],
"questionErrorLocation": "bottom"
}