Question T17870
Visible to All Users

Unable to see enableIf property for HTML type question

created 9 months ago

Hi,

We are using one custom widget which is comment button for each question in survey JS, we have a logic written like if the question is not in editable mode the widget button should be disabled.

But since in case of HTML type of question, it does not have enableIf property on the UI of properties it is creating a problem.

Can we add a custom editable if property for HTML question & by using that maintain the visibility of widget button?

Thanks,
Ramkumar More

Answers approved by surveyjs Support

created 9 months ago

Hello Ramkumar,
You can make the enableIf property for your type enabled as Serializer.getProperty("yourClassName", "enableIf").visible = true;.

Thank you,
Andrew
SurveyJS Team