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

Asynchronous Functions in Expressions - Introduce an API to determine the execution status of asynchronous functions #9181

Open
JaneSjs opened this issue Dec 18, 2024 · 0 comments
Assignees
Labels
enhancement user issue An issue or bug reported by users v2.0+

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Dec 18, 2024

T21125 - Asynchronous Expressions and Their Execution Status
https://surveyjs.answerdesk.io/internal/ticket/details/T21125


Usage scenario: a form uses asynchronous functions for vaiours expression fields such as visibleIf and requiredIf. However, Form Library doesn't currently handle this and, for instance, it is possible to submit a form without waiting until the requiredIf function finishes its execution. Consider the following sample demo: View Demo. It is also possible to call the survey.completeLastPage() without waiting until the async expression function finishes executing: View Demo.

Please consider supporting this usage scenario.

  • Block navigation elements if an async function is being executed;
  • Add an API which would allow developers to determine the execution status of asynchronous functions. This is required for a custom Save action.
@JaneSjs JaneSjs added enhancement user issue An issue or bug reported by users labels Dec 18, 2024
@andrewtelnov andrewtelnov self-assigned this Dec 19, 2024
@JaneSjs JaneSjs added the v2.0+ label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement user issue An issue or bug reported by users v2.0+
Projects
None yet
Development

No branches or pull requests

2 participants