Want to create a landing page for incidents same as change when click on Create New

BokkalaS
Tera Contributor

I have two types of incidents

one is Normal one
and second one is for someother type
when i click on create new incidents i want a landing page same as change where we can selecr standard and Normal change.

Is it possible to do

please let me know the solution 

1 ACCEPTED SOLUTION

Sarthak Kashyap
Mega Sage

Hi @BokkalaS ,

 

I tried your problem in my PDI and it is working fine for me please check below solution.

 

Navigate to All> UI Pages, create New

Name : incident_landing

In HTML add below code

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">

<div class="container">
  <h2>Select Incident Type</h2>
  <br/>
  <button class="btn btn-primary" onclick="redirectTo('normal')">Normal Incident</button>
  <button class="btn btn-info" onclick="redirectTo('special')">Special Incident</button>
</div>

<script>
function redirectTo(type) {
  if (type == 'normal')
    window.location = '/incident.do?sys_id=-1&amp;incident_type=normal';
  else
    window.location = '/incident.do?sys_id=-1&amp;incident_type=special';
}
</script>

</j:jelly>

SarthakKashyap_0-1761808592404.png

Now you can create a new Module under Incident application:

Navigate to sys_app_application_list table and open incident record and try to add new module under this please check link below

https://yourInstance.service-now.com/sys_app_application.do?sys_id=dead1309c611228701e2bda7b4252474&... 

 

SarthakKashyap_1-1761808742186.png

Create new Module from related list and give any name and type as URL(from Arguments) and give the name of your UI Page that created above.

SarthakKashyap_2-1761808794227.png

 

Result:

SarthakKashyap_3-1761808831528.png

SarthakKashyap_4-1761808845288.png

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards,

Sarthak

 

View solution in original post

2 REPLIES 2

Bhavya11
Kilo Patron

hi @BokkalaS ,

 

Yes, that's possible and also refer out of the box interceptor for Change Table

Refer this link

How to direct to interceptors

 

 

Thanks,

BK

If this information proves useful, kindly mark it as helpful or accepted solution.

Thanks,
BK

Sarthak Kashyap
Mega Sage

Hi @BokkalaS ,

 

I tried your problem in my PDI and it is working fine for me please check below solution.

 

Navigate to All> UI Pages, create New

Name : incident_landing

In HTML add below code

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">

<div class="container">
  <h2>Select Incident Type</h2>
  <br/>
  <button class="btn btn-primary" onclick="redirectTo('normal')">Normal Incident</button>
  <button class="btn btn-info" onclick="redirectTo('special')">Special Incident</button>
</div>

<script>
function redirectTo(type) {
  if (type == 'normal')
    window.location = '/incident.do?sys_id=-1&amp;incident_type=normal';
  else
    window.location = '/incident.do?sys_id=-1&amp;incident_type=special';
}
</script>

</j:jelly>

SarthakKashyap_0-1761808592404.png

Now you can create a new Module under Incident application:

Navigate to sys_app_application_list table and open incident record and try to add new module under this please check link below

https://yourInstance.service-now.com/sys_app_application.do?sys_id=dead1309c611228701e2bda7b4252474&... 

 

SarthakKashyap_1-1761808742186.png

Create new Module from related list and give any name and type as URL(from Arguments) and give the name of your UI Page that created above.

SarthakKashyap_2-1761808794227.png

 

Result:

SarthakKashyap_3-1761808831528.png

SarthakKashyap_4-1761808845288.png

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards,

Sarthak