Issue T22494
Visible to All Users

Update the expression of custom condition property when the referred question name is changed

created 6 days ago

Hi SurveyJS team,

In Survey Creator, I add a custom condition property for all questions by this code

TypeScript
Serializer.addProperty('question', { name: 'condition1', type: 'condition', displayName: `Condition1`, category: 'logic', });

I setup the condition as the follow {question1} = 1

On changing the question name to question11, the expression is not updated. It is observed that the built-in properties such as visibleIf updates accordingly while the custom ones do not.

Do you have any ideas on this issue?

Library version: "@angular/core": "18.2.13", "survey-creator-angular": "1.10.5"

Thanks,
Le

Comments (1)

    Hi Le,
    I managed to reproduce this issue using the most recent v1.12.28/v2.0.1: A custom condition property is not updated when an expression's question names are modified. We will research this issue and let you know once we have any news to share.

    Answers approved by surveyjs Support

    created 6 days ago

    Hello Le,
    Please add the following code:

    TypeScript
    import { SurveyLogic } from "survey-creator-core"; SurveyLogic.types.push(    {       name: "question_condition1",       baseClass: "question",       propertyName: "condition1",       showInUI: false,     } );

    Thank you,
    Andrew
    SurveyJS Team