Has anyone utilized Custom Code for the Table of Contents? | XM Community
Question

Has anyone utilized Custom Code for the Table of Contents?

  • 23 September 2020
  • 1 reply
  • 80 views

Badge +4

I am looking to format the Table of Contents to have the Block names BOLDED or BOLDED plus a different color and then have all sections under that block to appear under in normal text. Has anyone used custom code for this, and if so, could you share your approach?


1 reply

Userlevel 7
Badge +27

Hi there, if you still need, the ToC can be customized by adding the below CSS to the Style section of the survey's Look & Feel. The top bit references the currently selected block, the middle a completed block, and the bottom an incomplete block. Adjust as needed.
ToC_Styling1.png.Skin #Toc li.Current, .Skin #Toc li.Current a, .Skin #Toc li.Current strong, .Skin #TocHeader td.Current a, .Skin body #Toc li.Current a {
    font-weight: bolder !important;
    background: #003366 !important;
}

.Skin #Toc li.Complete a {
    color: #00FF00 !important;
}

.Skin #Toc li.Incomplete a {
    color: #FFA500 !important;
}

Leave a Reply