<h2>Customize segment button colors in the segmented control area</h2><br/><div style="overflow-x:auto"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta content="text/html; charset=UTF-8" /><meta name="copyright" content="(C) Copyright 2025" /><meta name="DC.rights.owner" content="(C) Copyright 2025" /><meta name="generator" content="DITA-OT" /><meta name="DC.type" content="task" /><meta name="DC.title" content="Customize segment button colors in the segmented control area" /><meta name="abstract" content="Customize the color of segment buttons to help users identify a tapped segment button. For example, use a darker color to indicate that it is a selected button." /><meta name="description" content="Customize the color of segment buttons to help users identify a tapped segment button. For example, use a darker color to indicate that it is a selected button." /><meta name="DC.creator" content="ServiceNow" /><meta name="DC.date.created" content="2023-08-03" /><meta name="DC.date.modified" content="2025-01-30" /><meta name="DC.format" content="XHTML" /><meta name="DC.identifier" content="dynamic-segmented-control-config" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>Customize segment button colors in the segmented control area</title></head><body id="dynamic-segmented-control-config"> <h1 class="title topictitle1" id="ariaid-title1">Customize segment button colors in the segmented control area</h1> <div class="body taskbody"><p class="shortdesc">Customize the color of segment buttons to help users identify a tapped segment button. For example, use a darker color to indicate that it is a selected button.</p> <div class="section prereq p"> <p class="p">Role required: admin</p> </div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Access the Card Template form.</span> <ol type="a" class="ol substeps" id="dynamic-segmented-control-config__substeps_aj3_xh4_fpb"><li class="li substep"> <span class="ph cmd">In the web-based UI, enter <code class="ph codeph">sys_sg_form_screen.list</code> in the filter navigator.</span> </li><li class="li substep"> <span class="ph cmd">Select the record screen that contains the dynamic screen segment you want to configure.</span> </li><li class="li substep"> <span class="ph cmd">Select the <span class="ph uicontrol">Record Screen Segments</span> tab and select the information icon (<img class="image icon" id="dynamic-segmented-control-config__image_iw2_134_fpb" src="../image/gac-info-icon.png" alt="Information icon." />) next to the embedded screen that contains a dynamic record screen segment.</span> </li><li class="li substep"> <span class="ph cmd">Select <span class="ph uicontrol">Open Record</span> from the menu.</span> </li><li class="li substep"> <span class="ph cmd">From the <span class="ph uicontrol">Dynamic segment list stream</span> field, select the information icon (<img class="image icon" id="dynamic-segmented-control-config__image_gct_134_fpb" src="../image/gac-info-icon.png" alt="Information icon." />) and select <span class="ph uicontrol">Open Record</span>.</span> </li><li class="li substep"> <span class="ph cmd">Select the List Stream M2M Item Configuration to use for the dynamic section.</span> </li><li class="li substep"> <span class="ph cmd">In the <span class="ph uicontrol">Card</span> field of the List Item Configuration form, select the information icon (<img class="image icon" id="dynamic-segmented-control-config__image_vk3_b34_fpb" src="../image/gac-info-icon.png" alt="Information icon." />) and select <span class="ph uicontrol">Open Record</span>.</span> </li></ol> </li><li class="li step stepexpand"> <span class="ph cmd">In the Card Template form, select the menu icon (<img class="image icon" id="dynamic-segmented-control-config__image_nj1_ygm_r4b" src="../image/context-menu-icon.png" alt="Menu icon." />) and select <span class="ph menucascade"><span class="ph uicontrol">Configure</span> > <span class="ph uicontrol">Form Layout</span></span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">In the Configuring Card Template form, select <span class="ph uicontrol">Root-view attribute JSON</span> and move it to the selected area.</span> <div class="itemgroup stepresult">The <span class="ph uicontrol">Root-view attribute JSON</span> displays in the Card Template form.</div> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Save</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Define the appearance of a tapped segment in the segmented control by pasting the following JSON code in the <span class="ph uicontrol">Root-view attribute JSON</span> field of the Card Template form.</span> <div class="itemgroup info"> <pre class="pre codeblock"><code>{ "OnSelect": { "BackgroundColor" : "Primary", "TextColor": "#FFFFFF" } }</code></pre> </div> </li><li class="li step stepexpand"><strong>Optional: </strong> <span class="ph cmd">If the standard primary, secondary, or destructive values do not fit your color scheme, modify the default values for the background color and text color by providing hexadecimal color values.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Right-click in the header and select <span class="ph uicontrol">Save</span>,</span> </li></ol> </div> </body></html></div>