Stockroom field is mandatory when state is in stock

jnt-cnt
Mega Sage

Hi Community,

 

In Asset management workspace, once the state is "In stock", stockroom field becomes mandatory.

However, I have checked that table, UI Policies, client script does not seem to have a logic where stockroom field is made mandatory. Any ideas where and what the setting could be?

1 ACCEPTED SOLUTION

J Siva
Tera Sage

Hi @jnt-cnt 
In alm_asset table there's one UI policy called "Show Stockroom which has UI policy script configured to make the "Stockroom" field mandatory.
Please check that UI policy.

JSiva_0-1741847466311.png

 Hope this helps.
Regards,
Siva

View solution in original post

2 REPLIES 2

J Siva
Tera Sage

Hi @jnt-cnt 
In alm_asset table there's one UI policy called "Show Stockroom which has UI policy script configured to make the "Stockroom" field mandatory.
Please check that UI policy.

JSiva_0-1741847466311.png

 Hope this helps.
Regards,
Siva

Selva Arun
Mega Sage
Mega Sage

Hi @jnt-cnt ,

 

The UI Policy with the sys_id 5b56d1b13783100044e0bfc8bcbe5d9d is responsible for making the Stockroom field mandatory when the state is set to "In Stock." You can verify this by logging into your instance and navigating to the UI Policy using the following steps:

 

  1. Replace the instance name in the URL with your instance name (e.g., https://<your_instance>.service-now.com).
  2. Access the UI Policy directly using the sys_id:
    https://<your_instance>.service-now.com/sys_ui_policy.do?sys_id=5b56d1b13783100044e0bfc8bcbe5d9d
  3. Review the conditions and actions defined in the UI Policy to confirm its behavior.

SelvaArun_0-1741895024934.png

 

 

SelvaArun_1-1741895034916.png

 

If you believe the solution provided has adequately addressed your query, could you please **mark it as 'Helpful'** and **'Accept it as a Solution'**? This will help other community members who might have the same question find the answer more easily.

 

Thank you for your consideration.


Selva Arun