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

choicesByUrl are not retrieved when the question is placed inside a Dynamic Panel and sends a parameterized query #9390

Closed
JaneSjs opened this issue Feb 3, 2025 · 0 comments · Fixed by #9402
Assignees
Labels
bug user issue An issue or bug reported by users

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Feb 3, 2025

T21586 - Issue with Data Retrieval when Changing Element Type
https://surveyjs.answerdesk.io/internal/ticket/details/T21586


To reproduce the issue, follow these steps.

npm i
npm run start

A regular panel - when selecting a Group or Car Make, a request is made and Car Model options are retrieved correctly.
Image
In this panel, choices are retrieved as follows:

choicesByUrl: {
  url: 'http://localhost:3000/options/?group={group}&inputs={"car_make": "{bp-param-car_make}"}',
  allowEmptyResponse: true,
  valueName: "name"
}

A dynamic panel - no request is made when selecting options of master questions.

Image

The only difference is that we use {panel.XXX} to reference master field values:

choicesByUrl: {   
     url: 'http://localhost:3000/options/?group={panel.group}&inputs={"car_make": "{panel.bp-param-car_make}"}',
     allowEmptyResponse: true,
     valueName: "name"
}
@JaneSjs JaneSjs added bug user issue An issue or bug reported by users labels Feb 3, 2025
@andrewtelnov andrewtelnov self-assigned this Feb 4, 2025
andrewtelnov added a commit that referenced this issue Feb 4, 2025
@tsv2013 tsv2013 closed this as completed in 4fb48b1 Feb 5, 2025
andrewtelnov added a commit that referenced this issue Feb 5, 2025
@RomanTsukanov RomanTsukanov changed the title Choices By URL are not retrieved within a Dynamic Panel when using a specific query parameters format choicesByUrl are not retrieved when the question is placed inside a Dynamic Panel and sends a parameterized query Feb 5, 2025
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

Successfully merging a pull request may close this issue.

2 participants