Mitigated Filed should not be mandatory if state is In Progress and assignment group changes in inci

maharshi_v
Tera Contributor

Hi Team,

 

I am facing a problem. I have field name mitigated and it should be mandatory if state is changed to inprogress. I have written a onload client script for this. But my concern is, when assignment group changes then mitigated field should not be in mandatory. Kindly help me with this.

3 REPLIES 3

Chandra18
Mega Sage

Hi @maharshi_v ,

Chandra18_1-1734264445171.png

Sorry, I am little confuse because your short description & Description have diffrent mean.
But as per your short description, You can create a UI Policy and take two condition:
State is "In Progress" and Assignment group is "inci".  And create a ui policy action Mitigated mandatory=False and rest should be leave alone.

Chandra18_2-1734265285428.png

 


Note: If Make mandatory is depends on another field, you need to write onChange client script not onLoad. 


Thank You!
Chandra

Hi @maharshi_v ,

 

Did this way resolved your issue ? Let me know if you need any further assistance!

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful".

Thank You!

Hi @Chandra18 

 

No it didn't work but we have created an onload client script for making the mitigated Filed by passing the state is inprogress and later we have written another clientscript on onchange of assignment group making mitigated Field not madatory.