We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

HRSD Configurable Workspace

Drishti
Tera Guru

Hello Community,

 

We have a requirements from configurable workspace:

 To make custom fields mandatory only if subject person is from India else it should be non-mandatory . 
What I tried : Creating UI policy putting all condition with that specific Hr Service , It didn't worked. I even unchecked the global checkbox and use the View field for Workspace UIB - This too didn't worked. I tried creating client script too and calling script include to check for subject persons country details. 
No alert, NO addinfomessage nothing is working.

 

 

2)  

4 REPLIES 4

Ankur Bawiskar
Tera Patron

@Drishti 

you didn't share the script you created, share screenshots

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

Attached...

@Drishti 

try to use getXMLAnswer() syntax for GlideAjax

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

abirakundu23
Giga Sage

Hi @Drishti ,
It should work by using client script and UI type be All  and use proper code syntax for client script and script include for the following logic.

If your code still not working please pasted over here.

Please mark helpful and correct answer if it's worthy for you.