why Default view is not displaying in new record -incident record

chanikya
Tera Guru

using with OnChange script -in a new record if   i have changed state value from NEW to CLOSED then form view was changed to ''state_closed''view   ----working fine, after updated   record ,

if we see in list of records       view is displaying as like "state_closed"

when i clicked on NEW button then "state_closed " view is reflecting on NEW record , As per new record view should be Default view

i want to display Default view when i click on NEW button

1 ACCEPTED SOLUTION

Try this view rule. Its working in my personal instance.



find_real_file.png


View solution in original post

17 REPLIES 17

Hi Sunil,




it is working fine..!


How it is working here, Can you please explain it.


Its the view rule in service now that redirects the forms when the condition meets. For every new incident sys_id will be empty, so we put the condition as empty for sys_id and it is working fine.



Please mark the answer as Correct if you are fine.


Hi Sunil,



So no need to write any script like OnLoad , OnChange, View Rule Script..! right?


If you have already created view rule then no need to write any other scripts.


i have created View Rule as you suggested , as per that View Rule it is working fine,....!


creating record with Default View...!




Perfect sunil..!


Thank you So much Sunil...!