Field Alignment issue while using UI Policies

mitanshi-mandlo
Tera Contributor

Hi, 

Whenever I am using a UI Policy Action to hide a field on the form based on some conditions, when the condition are not meet, I am seeing indentation for the fields on the form.

 

Need Help!!!!

mitanshimandlo_0-1702395378797.png

 

1 ACCEPTED SOLUTION

Community Alums
Not applicable

No, unfortunately, you cannot directly deactivate the indentation caused by hiding fields through UI Policies in ServiceNow.

Could you try to achieve the same requirement with the client script? (Hint: you can use the

setDisplay() method to hide/show field.)

)

 

View solution in original post

3 REPLIES 3

Community Alums
Not applicable

Hi @mitanshi-mandlo ,

 

Indentation caused by hiding fields through UI Policies in ServiceNow is a default behavior intended to maintain form structure. Unfortunately, this indentation isn't customizable within UI Policy settings.

 

Could you please provide more info/screenshots?

Is there any way to inactivate the indentation?

 

mitanshimandlo_0-1702398651213.png

 

mitanshimandlo_1-1702398746850.png

 

 

Community Alums
Not applicable

No, unfortunately, you cannot directly deactivate the indentation caused by hiding fields through UI Policies in ServiceNow.

Could you try to achieve the same requirement with the client script? (Hint: you can use the

setDisplay() method to hide/show field.)

)