Has anyone utilized Custom Code for the Table of Contents? | XM Community
Skip to main content
Question

Has anyone utilized Custom Code for the Table of Contents?

  • September 23, 2020
  • 1 reply
  • 170 views

Forum|alt.badge.img+6

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

Tom_1842
Level 8 ●●●●●●●●
Forum|alt.badge.img+28
  • Level 8 ●●●●●●●●
  • November 21, 2022

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;
}