Create a Popup with Yes/No using Ui actions and Ui Page in ServiceNow

Harish Ragz
Kilo Guru

Create a new button "Create Change Request" on the incident form, upon clicking on that a Yes / No popup should appear and upon clicking YES a change request will have to be created against the incident.(Depends on Ui Actions, Ui Page and Angular.js).

I'm new to Service Now , I need a answer for this question?. Please can anybody help me.

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron
Mega Patron

Hi Hareesh,




You can use something as below



Action Name: moveahead


onclick: valconfirm();



with below code




//for client end


function valconfirm()


{


var ans=confirm('Do you want to proceed');


if(ans==true)


{


gsftSubmit(gel('moveahead'));


}


else{


return false;


}


}




//for server side


createchange();



function createchange();


{


//code for insertion of change in change table


}


View solution in original post

6 REPLIES 6

Community Alums
Not applicable

Are you trying to have the change record submitted right there, or do you want people to interact with it before they submit it?


Hi Kevin Bellardine,



I have to change a record when i'm clicked a button only.



Thanks & Regards,


K.Hareesh Reddy.