Why Ui Policy does not work on list view?

Vicky Kumar Sh1
Tera Contributor

Can someone explain why Ui policy doesn't work on list view? I am new to SNOW and just learning basics.
I searched and all the answer is just saying that It doesn't work on list view and use Data policy for such task.

But I want to know why, what is the reason Ui policy doesn't work on list view.

1 ACCEPTED SOLUTION

Sagar Pagar
Tera Patron

Hi,

UI Policies have 2 types - onload and onchange. Hence it will not working in list view.

Client script have 4 types - onload, onchange, oncell edit, onsubmit. you can write on cell edit client script for your business requirements.

 

Thanks,
Sagar Pagar

The world works with ServiceNow

View solution in original post

4 REPLIES 4

Allen Andreas
Administrator
Administrator

Hello,

By current design, UI Policies just don't work on list view. So it's a feature limitation.

If you need to adjust things on list view, then you'd use an onCellEdit Client Script.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi Vicky,

I'm glad you found a correct answer. I felt I covered that appropriately, above, but perhaps not.

Anyways, take care! 🙂


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

dianemiro
Kilo Sage

Hi Vicky,

UI policies only work on form view or it only apply to data entered on a form via a standard browser. For more information, please see SNOW doc for Data policy.

May I know what are you trying to accomplish for your list view?

Please Mark Correct or Helpful, if applicable. Thank you!

Regards,
Diane

Sagar Pagar
Tera Patron

Hi,

UI Policies have 2 types - onload and onchange. Hence it will not working in list view.

Client script have 4 types - onload, onchange, oncell edit, onsubmit. you can write on cell edit client script for your business requirements.

 

Thanks,
Sagar Pagar

The world works with ServiceNow