New field (Reassignment Reason) is visible/mandatory when assigned to is updated

ahmed-24
Tera Contributor

i want to create a new field (Reassignement reason) which is (Visibile/mandatory) when the assigned to is updated 

Icreate a UI Policy whith script; i also create a client script. But it's not working!!

Help please. 

21 REPLIES 21

Can you please update this condition line and check

if (newAssignee != oldValue) {

And based on requirement you can clecr the value of the field as well.
Your feedback makes the community stronger! If you found this helpful, marking it as the correct answer helps others.
Stay awesome,
Roshnee Dash

@Roshnee Dash we are so near for the sollution and i thank you so well for your effort! the only problem is when i create a new incident and try to assign it to user ; the field apears 

ahmed24_0-1750420831231.png

 

add like this if (newAssignee != oldValue  && !gForm.isNewRecord()){
Based on requirement you can play with this condition when to display and Hide.

 

And If you found my response helpful, please mark it as correct and close the thread so others can benefit from it too.

 
Your feedback makes the community stronger! If you found this helpful, marking it as the correct answer helps others.
Stay awesome,
Roshnee Dash

@ahmed-24 
Can you please change the if condition and check.

if (newAssignee != oldValue) {

 and  based on your requirement you can clear the custom field value as well

Your feedback makes the community stronger! If you found this helpful, marking it as the correct answer helps others.
Stay awesome,
Roshnee Dash

@Roshnee Dash   we are so near for the sollution and i thank you so well for your effort! the only problem is when i create a new incident and try to assign it to user ; the field apears

ahmed24_0-1750421331013.png