How to hide some state of process flow?

eer biondo
Giga Contributor

Hi,

how can I hide the 'submitted' and ' screening' state in process flow if 'U_tag = enhancement' and show it if u_tag = project?

i have tried with ui policy script but don't work

find_real_file.png

1 ACCEPTED SOLUTION

RaghavSh
Kilo Patron

1.Go to Process flow from application navigator

2. Search By table:

find_real_file.png

3. open the required record and set the condition for submitted and screening on basis of u_tag

find_real_file.png


Raghav
MVP 2023

View solution in original post

7 REPLIES 7

yandp
Tera Guru

Hello @eer biondo ,

I found and refer to the solution, as i have the same condition as well. need to remove a few state from the process flow based on a value. i tried, but not working for me, the state is always display.

refer to your case, your condition setting is like :

u_tag = project, any other condition to set?

Appreciate if i can get helps from you to resolve this.

Thank you.

J Trunnelle
Tera Expert

This worked for me to remove the Review item from the formatter when not in Review, from the change_request table:

onLoad Client Script:

...

if(g_form.getValue('state') != 0){
$j("a:contains('Review')").parent("li").hide();

}

...

 

In your case, this might look like:

  if(g_form.getValue('U_tag') == 'enhancement') {
     $j("a:contains('Submitted')").parent("li").hide();

     $j("a:contains('Screening')").parent("li").hide();

  }

 

TL;DR

This looks in the document for anchor tags, <a>, and further looks to see if it contains the keywords I want, in this case 'Review'.  Then it finds the parent <li> tag and hides it, along with the anchor within it.

Geeethanjali
Tera Contributor

please use below script in your UI policy and it would hide that. Ensure in your UI policy you set Isolate Script field as false. this field you can set to false form list view of UI policies as this is not available on form

$j("a:contains('Review')").parent().hide();