I have a GET API that gets a list of users, and this API can take a filter called FilterText. So if I want to search a specific user, let's say John, it could be something like:
https://myAPI.com/myAPI?FilterText=John
We want to implement this using a dropdown so that whatever you search in the dropdown search bar is input for FilterText. The reason for dropdown is that if there are multiple users named John, then you would see a list of Johns and select whichever you want. I tried doing this as follows but it didn't work (note that the API url is a dummy one):
JSON{
"title": "Test Form",
"pages": [
{
"name": "page1",
"elements": [
{
"type": "dropdown",
"name": "question1",
"choicesByUrl": {
"url": "https://myAPI.com/myAPI?FilterText={question1}",
"valueName": "id",
"titleName": "text"
}
}
]
}
]
}
Thank you