Disable or Hide the Module Button | Kentico

pankaj saxena asked on November 4, 2022 07:29

Hi Team,

Any idea how to hide the New button after the single entry on module. Means user enter information only one time in a module.

https://ibb.co/6RGkbHL

Recent Answers


Dmitry Bastron answered on November 7, 2022 08:38

Hi Pankaj,

I don't think it can be easily done. However you can restrict creation of another entity by hooking to the before create event, checking if there was a List already and throwing an error which will not allow the admin user to create a new item. However the button will still be visible.

0 votesVote for this answer Mark as a Correct answer

pankaj saxena answered on November 14, 2022 11:58

Hi @Dmitry,

Currently I'm creating the module via user interface so the global event not work for the Module. Can you please provide any of the example where the global event use for the module button.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.