The CreatorCon Call for Content is officially open! Get started here.

How to make a field mandatory and apply ui policy in status report

JayanthiHCL
Tera Contributor

I have a requirement to create a new field in status report in project workspace and field should appear if health is yellow or red.. 

 

how to acheive 

3 REPLIES 3

kaushal_snow
Mega Sage

Hi @JayanthiHCL ,

 

>> Create a UI Policy:

 

Table: Select the relevant table for your status report.

Condition: Set the condition to Health is yellow or red.

 

>> Define UI Policy Actions:

Field: Choose the new field you want to make mandatory.

Mandatory: Set this to True.

 

This will ensure that the new field becomes mandatory only when the Health field is set to yellow or red. ...

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/

Bhuvan
Giga Patron

@JayanthiHCL 

 

Status report is launched via UI action, go to below instance URL for UI action

 

https://<instance>.service-now.com/sys_ui_action.do?sys_id=ce4427749f371200598a5bb0657fcf5b

 

 

Bhuvan_0-1759046691955.png

Bhuvan_1-1759046755071.png

Add the conditional fields from UI Action script, you can use below post for reference

 

https://www.servicenow.com/community/servicenow-ai-platform-forum/ui-action-mandatory-field/m-p/1261...

 

If this helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan

Ankur Bawiskar
Tera Patron
Tera Patron

@JayanthiHCL 

please share screenshots supporting your question.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader