- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2018 12:51 AM
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
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2018 01:39 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2018 12:56 AM
You can modify New UI action to redirect to required form view
action.setRedirectURL('incident.do?sys_id=-1&sysparm_view=YOURVIEWNAME');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2018 12:58 AM
where i have to mention this script line in UI Action -NEW

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2018 01:08 AM
Check if your UI action is defined on Incident table or global. If it is global one create a new UI action with name as "New" and add the below line of code.
action.setRedirectURL('incident.do?sys_id=-1&sysparm_view=Default');
If it is on incident table then paste the code here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2018 01:12 AM