Can we have two different process flows on change_request table?

Sreeja Gattu
Kilo Expert

Hi,

I need   process flows based on the Type of the change and State value .

For Standard change , Need to show only 5 states on Process flow.

For Normal change, Need to show 8 state values on Process flow.

 

I tried by selecting the type and state in condition builder,

But on the change form, its showing the labels twice.

 

Please look into the images attached,

 

Can we have solution for this?

 

 

 

Thanks in Advance

Sreeja

10 REPLIES 10

Anurag Tripathi
Mega Patron
Mega Patron

Yes you can,


on my instance we use amost 3 sets of different Process flow for the same table.


But there is no direct way to do it, we use DOM manipulation to hide extra blocks, and to change the text.


-Anurag

Anurag Can you please explain us how it can be done


suppose you have 2 sets of process flow on the same table. now what you need to do is create the one with max steps on your table with proper names.


now for the form with lesser number of boxes ...you have to write a client script and using DOM hide the boxes you dont need, and rename the others.


I think there is a post on servicenow guru on similar notes.


-Anurag

Yes Thanks Anurag.But the problem is I am not able to hide the blocks with DOM.


something liuke this should work



var flowstep = document.getElementsByTagName("td");


    var k;


    var child;


    var img;



    for(k = 0; k < leng; k++)


          {


  child = flowstep.item(k);


         


          if(child !=null && (child.getAttribute("title")=="ELEMENTS YOU WANT TO REMOVE") //ADD OR CONDITION TO REMOVE MULTIPLE ELEMENTS


                      {


                      child.parentNode.removeChild(child);


  }


}


-Anurag