ui action back button

jayu271
Tera Contributor

img 1.PNG

I set a back button in table form by creating in new ui action,, it reflected in my  service portal . when i click the back

button it will move to previous page highlighted page in below image.  so help me how to write the script for from form  navigate service portal?

.img 2.PNG

 

2 ACCEPTED SOLUTIONS

Hi Jayu,

 

Open the Required page manually, Copy the above url and paste it in the brackets,

 

Also, check if the UI action, make sure client check box is unchecked

 

action.setRedirectURL('URL');

 

Plz Mark my Solution as Accept and thumbs up, If you find it helpful.

 

Regards,

Samaksh

 

View solution in original post

8 REPLIES 8

Samaksh Wani
Giga Sage
Giga Sage

Hello Jayu,

 

In The Ui Action script, you need to write :-

 

action.setRedirectURL("sp?id='id_of_new_page'")

 

Plz Mark my Solution as Accept and thumbs up, If you find it helpful.

 

Regards,

Samaksh

hi samaksh,

 

action.setRedirectURL("sp?id='sys'");     i tried with my page id , but it gives error 404img3.PNG

Hi Jayu,

 

Open the Required page manually, Copy the above url and paste it in the brackets,

 

Also, check if the UI action, make sure client check box is unchecked

 

action.setRedirectURL('URL');

 

Plz Mark my Solution as Accept and thumbs up, If you find it helpful.

 

Regards,

Samaksh

 

 

I got same error again, here i have given my script lines, is it right or not, kindly plz correct me.

 

function goBack() {

action.setRedirectURL("sp?id='sys'");


action.setReturnURL('https://dev137513.service-now.com/sp?id=sys');
action.Back();
}

goBack();