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

Custom expression properties do not work when they are added to a choice item definition #8641

Closed
andrewtelnov opened this issue Aug 1, 2024 · 0 comments · Fixed by #8642
Assignees
Labels
Milestone

Comments

@andrewtelnov
Copy link
Member

If you define this expression property, then it will not work property for select base questions:

import { Serializer } from "survey-core";

  Serializer.addProperty("itemvalue", {
    name: "customExp:expression",
    onExecuteExpression: (obj, res) => {
      obj.setPropertyValue("customVal", res);
    }
  });

onExecuteExpression function is not executed.

@andrewtelnov andrewtelnov self-assigned this Aug 1, 2024
@OlgaLarina OlgaLarina added this to the v1.11.10 milestone Aug 2, 2024
@RomanTsukanov RomanTsukanov changed the title Custom expression property is not working on adding it into choices items A custom expression property doesn't work when it is added to a choice item definition Aug 6, 2024
@RomanTsukanov RomanTsukanov changed the title A custom expression property doesn't work when it is added to a choice item definition Custom expression properties do not work when they are added to a choice item definition Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants