Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Different View for new records

gaidem
ServiceNow Employee
ServiceNow Employee

Hello,

I have a view that should only show on new records. So I modified the arguments in the Create New Incident module to specify this view. If you click Save it stays on this view.

I need to do something to switch the view after save. I thought I could utilize an on load client script with a g_form.isNewRecord() check, but this doesn't seem to be the case.


New record = a view called "new"
Existing records should use the default view

Any ideas?

1 REPLY 1

gaidem
ServiceNow Employee
ServiceNow Employee

I've got a work around where I apply a value to a field before inset that I use in conjunction with a view rule. I never like having fields like this for UI checks, so any other solutions would be appreciated.