How to variable is only when RITM stage is requested and state is pending requestor ?

lucky24
Tera Contributor

Hi Team,

 

I have one variable in Catalog Item, I want It should be only visible when RITM is in Requested stage and state is pending requestore.

 

How can I achieve it ,

 

Thanks

Lucky 

1 REPLY 1

Brad Bowman
Kilo Patron
Kilo Patron

Hi Lucky,

You can do this with an onLoad Catalog Client Script that Applies on Requested Items.  Your script will look something like this:

function onLoad() {
  if (g_form.getValue('state') == 5  && g_form.getValue('stage') == 'requested') { //replace with your State and Stage values
	g_form.setDisplay('v_select', true); //replace with your variable name
  } else {
	g_form.setDisplay('v_select', false);
  }
}