List view clear value not working

Are Kaveri
Tera Contributor

Hello everyone,

 

I am working for one of the field display and mandatory.

created below UI policy 

active = true AND

Category = Software

 

Reverse if true

 

the UI policy action:

sub category = Visible true, mandatory true, Clear value false

 

I am facing issue as below 

active true AND

Category = Hardware (before software and has some value in sub category)

sub category = not clearing value on list view

 

how to clear value on LIST view ?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Are Kaveri 

UI policy or onChange client script doesn't work on list view but only on form.

to clear the value on list view you need to use Before update BR and have proper condition and then clear the value

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

View solution in original post

2 REPLIES 2

PrashantLearnIT
Giga Sage

Hi @Are Kaveri 

 

Try to use OnCellEdit Client script and write these scripts inside client script.

 

********************************************************************************************************
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.

********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect


Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************

Ankur Bawiskar
Tera Patron
Tera Patron

@Are Kaveri 

UI policy or onChange client script doesn't work on list view but only on form.

to clear the value on list view you need to use Before update BR and have proper condition and then clear the value

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