johnnliu / UserCustomActionsConfigPage

The easiest way to add script to your SharePoint and SharePoint Online
33 stars 22 forks source link

Custom Actions getting duplicated #12

Open simkessy opened 7 years ago

simkessy commented 7 years ago

Every time my custom action script runs, it adds duplicate buttons to my ribbon, how do you prevent that from happening?

johnnliu commented 6 years ago

Hi - you should check if your action is already registered and not register a new copy. The UserCustomActions is basically a list of additional scripts or customizations that SharePoint will try to load. It doesn't have logic that prevents duplicates.