Why has my incident process flow reverted to default?

ThomasGriff
Giga Contributor

Hi all,

 

I added a new field to the incident table, and for some reason the incident process flow has reverted to default styling and I'm unable to revert it to the custom one we had.
Incident process flow: image.png

 

Incident formatter:

ThomasGriff_0-1744723394309.png


Incident UI Macro:

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
  <link rel="stylesheet" type="text/css" href="styles/process_flow_formatter.cssx"></link>
  <tr>
    <td colspan="2" width="100%" nowrap="true">
      <div>
        <table cellpadding="0" cellspacing="0" style="width: 100%;border:none;border-collapse:collapse" class="process_flow_formatter" role="listbox">
          <tr role="presentation">
            <g2:flow_formatter var="jvar_flows" table="$[${ref_parent}.getRecordClassName()]" current="$[${ref_parent}]" />
            <g2:evaluate var="jvar_width" jelly="true">
                   var size= jelly.jvar_flows.size();
                   if(size)
                   Math.floor(100/size);
            </g2:evaluate>
            <j2:forEach items="$[jvar_flows]" var="jvar_flow">
            <g2:set_if var="jvar_step_status" test="$[jvar_flow.getParameter('state') == 'current']" true="step" false="false" />
              <td style="width:$[jvar_width]%" class="process_flow $[jvar_flow.getParameter('state')]" role="option" aria-current="$[jvar_step_status]" aria-selected="$[jvar_flow.getParameter('state') == 'current']">
                    <a role="presentation" aria-disabled="true" aria-label="$[jvar_flow.getLabel()]">$[jvar_flow.getLabel()]</a>
              </td>
              <td width="16" height="100%"  aria-hidden="true">
                  <img style="margin:0; padding:0px;" alt="" aria-hidden="true"
                     src="images/chevron_$[jvar_flow.getParameter('state')]_$[jvar_flow.getParameter('next_state')].pngx" />
              </td>
            </j2:forEach>
          </tr>
        </table>
      </div>
    </td>
  </tr>
</j:jelly>


What's extremely odd about this is that the problem table has a process flow running the exact same formatter and that works fine.

 

Problem record (what it should look like):

ThomasGriff_1-1744723532195.png

 



If anyone has any suggestions that would be amazing! Thank you

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@ThomasGriff 

did you check any client script or UI policy is changing the color since the same formatter is used in other table and it's working fine there?

As per this link some other member also highlighted that it shows mint green color and cannot be changed

How to customize the color of Process Flow Formatter? 

AnkurBawiskar_0-1744725838398.png

 

but please check this link which has a workaround

Process flow formatter not adapting to theme color 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@ThomasGriff 

another way is to create a copy of that UI macro, check the code and add proper color

Then associate this new UI macro with the formatter and add that on form

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader