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

A drop-down displays a value instead of display text for a default value when choices are retrieved from a RESTful service #5876

Open
JaneSjs opened this issue Sep 11, 2024 · 0 comments
Assignees
Labels
bug user issue An issue or bug reported by users.

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Sep 11, 2024

T19772 - ChoicesByUrl display during the designer phase
https://surveyjs.answerdesk.io/internal/ticket/details/T19772


The issue can be reproduced at https://surveyjs.io/create-free-survey. Configure a drop-down to pull data from a web service:

{
  "pages": [
    {
      "name": "page1",
      "elements": [
        {
          "type": "dropdown",
          "name": "country",
          "title": "Select a country",
          "description": "A full list of countries is queried from a RESTful web service.",
          "defaultValue": "United Arab Emirates",
          "choicesByUrl": {
            "url": "https://surveyjs.io/api/CountriesExample",
            "valueName": "name",
            "titleName": "officialName"
          }
        }
      ]
    }
  ],
  "showQuestionNumbers": "off"
}

Set a default question answer. You can see that the list of options shows display names:
image
However, a drop-down displays a value instead of a display text on a design surface:
image

Expected output:
image

@JaneSjs JaneSjs added bug user issue An issue or bug reported by users. labels Sep 11, 2024
@JaneSjs JaneSjs assigned andrewtelnov and JaneSjs and unassigned andrewtelnov and JaneSjs Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug user issue An issue or bug reported by users.
Projects
None yet
Development

No branches or pull requests

2 participants