Question T16912
Visible to All Users

Incorporating the current question into the expression builder

created a year ago

Hello,
I'm wondering if there's a method or recommendation for incorporating the current question into the expression builder. I'm dealing with a scenario involving composite questions, where I need to enable certain parts based on others. While typing the expression manually achieves the desired outcome, I prefer utilizing the expression builder (as I refer to it). Could you offer any guidance or assistance in this regard?

Answers approved by surveyjs Support

created a year ago

Hello Belal,
Thank you for reaching out. If you wish to create a Boolean property with an expression dialog, set the property's type to "condition". Please use this property type for Boolean expressions similar to visibleIf or enableIf settings. A property grid will display a multi-line text input with an optional dialog window.

Let us know if you have any further questions.

Thanks

    Show previous comments (15)
    AT AT
    Andrew Telnov a year ago

      Hello Belal,
      I'm sorry. Are you talking about creating expressions inside the composite component?
      You need to use "{composite.NA} = true" for expression inside the component.

      Thank you,
      Andrew
      SurveyJS Team

      BA BA
      Belal alktish a year ago

        I know that I need to use "{composite.NA} = true" and my request IS how to construct "{composite.NA} = true" using expression dialog and not type "{composite.NA} = true" manually

        Never mind

        Thank you

        AT AT
        Andrew Telnov a year ago

          Hello Belal,
          Got it. Unfortunately we don't allow to do it and I tried to explain the reason in my previous reply.

          Thank you,
          Andrew
          SurveyJS Team