unwanted variables in ritm form

nameisnani
Mega Sage

Hi Team ,

 

I have submitted a request from Service portal .

 

But when i checking in platform , some unwanted variables are coming , 

 

UI Ploicy also good , there is mistake .

 

can anyone please provide me the OnLoad Cilent script . for this kind of problem .

 

nameisnani_0-1710120491318.png

 

 

can anyone please provide me the script .

 

7 REPLIES 7

Sumanth16
Kilo Patron

Hi @nameisnani ,

 

You should use catalog item UI Policies that are effective on the request item and catalog task records to then hide. So these would only be visible on the catalog item (end-user form) initially:

Sumanth16_3-1710120926224.png

 

Other reasons why the fields won't hide is if their mandatory or you have other scripts causing them to not be hidden. Please double-check for these fields.

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda

Hi @Sumanth16 

 

For above screenshot, this is UI Plocy ,

I have checked for both the check box , still it is not working , Idk why ?

nameisnani_0-1710121792557.png

 

nameisnani
Mega Sage

Hi @Sumanth16 

 

Please see this 2nd sineriao also 

 

nameisnani_1-1710122034518.png

 

nameisnani_2-1710122101135.png

 

submitted the request total 8 variables .

 

if i checked in platform ,2 unwanted varaibles are showing .

nameisnani_3-1710122219387.png

 

 

This is the UI Policy for this , 

nameisnani_5-1710122375691.png

 

How to resolve this 

 

NOTE :- Short Descp and Descp are coming from the variable set

 

Hi @nameisnani you need to create a UI Policy and set the variable as non mandatory since these variables are coming from variable set.

you can also write a onLoad client script on RITM table with below script.

g_form.setMandatory('variables.variablename',false); //for example variables.short_decription

Regards
Harish