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

Dynamic Panel - Introduce the onDynamicPanelValueChanging event #9336

Open
lbonite1 opened this issue Jan 17, 2025 · 5 comments
Open

Dynamic Panel - Introduce the onDynamicPanelValueChanging event #9336

lbonite1 opened this issue Jan 17, 2025 · 5 comments
Assignees
Labels
documentation enhancement user issue An issue or bug reported by users

Comments

@lbonite1
Copy link

Is there a way to use .onValueChanging with .onDynamicPanelItemValueChanged to see the old value and new value within the dynamic panel instead of seeing all the old values associated with the whole dynamic panel? I want to see the old value for an individual question inside the dynamic panel.

@JaneSjs
Copy link
Contributor

JaneSjs commented Jan 20, 2025

Hello @lbonite1,
Thank you for your inquiry. I forwarded this task to our developers for further consideration. We'll update you as soon as we get any news to share.

Please stay tuned.

@JaneSjs JaneSjs changed the title .onValueChanging with .onDynamicPanelItemValueChanged Dynamic Panel - Introduce the onDynamicPanelItemValueChanging event Jan 20, 2025
@RomanTsukanov
Copy link
Contributor

@andrewtelnov

  • Rename onDynamicPanelItemValueChanged -> onDynamicPanelValueChanged
  • Add onDynamicPanelValueChanging
survey.onDynamicPanelValueChanging.add((_, options) => {
  // options.question
  // options.panel
  // options.panelData
  // options.panelIndex
  // options.name  
  // options.value
  // options.oldValue (the only new parameter)
});

@RomanTsukanov RomanTsukanov removed their assignment Jan 22, 2025
@lbonite1
Copy link
Author

lbonite1 commented Jan 22, 2025

@RomanTsukanov

would this be in the new release, if not when?

@RomanTsukanov
Copy link
Contributor

@lbonite1 This API is planned for implementation, but I cannot give you any time estimations.

@lbonite1
Copy link
Author

Sounds good thank you!

@andrewtelnov andrewtelnov changed the title Dynamic Panel - Introduce the onDynamicPanelItemValueChanging event Dynamic Panel - Introduce the onDynamicPanelValueChanging event Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation enhancement user issue An issue or bug reported by users
Projects
None yet
Development

No branches or pull requests

4 participants