Question T16914
Visible to All Users

Hide some properties

created a year ago

Hello Survey JS team,

I want to hide the title for what's underline yellow :
Screenshot 2024-02-18 152406.png

And the icons only be shown.

Answers approved by surveyjs Support

created a year ago

Hello Amro,
You can implement the creator.onDefineElementMenuItems function and disable the IAction.showTitle option for required actions.

Please let me know if you require further assistance.

    Comments (3)

      Hello Jane,
      i want an example to hide the duplicate title pls.

        Hi Amro,
        Thank you for the update. Please consider this code:

        JavaScript
        creator.onDefineElementMenuItems.add((sender, options) => { options.items.forEach((item) => { if (item.id === "duplicate") { item.showTitle = false; } }); });

        Drop me a line if you have more questions.

          Many thanks Jane !