Forum Discussion

swensonic's avatar
swensonic
Copper Contributor
Jan 26, 2023

SharePoint User defined Unique ID/Name for a Web Part.

I would like the ability to give each web part a unique id or name so that I can easily access the elements for css and Javascript. For instance, I have 3 different "Quick Links" web parts on a page, Id like to apply different CSS to each "Quick Links" web part.

 

Is there such a Web Part that can accomplish this? 

  • RobElliott's avatar
    RobElliott
    Silver Contributor

    swensonic this is not possible out-of-the-box. Maybe with SPFx....

     

    Rob
    Los Gallardos
    Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)

    • swensonic's avatar
      swensonic
      Copper Contributor
      Thanks for the quick response. I figured it would be SPFx but just wondered if someone could point me in the right direction of any custom SPFx solutions.
      • RobElliott's avatar
        RobElliott
        Silver Contributor

        swensonic I don't have access to SPFx so you'll need to speak to ganeshsanap who has the knowledge about this.

         

        Rob
        Los Gallardos
        Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)

Resources