Manipulating the "Post" button

niagarwal
Kilo Guru

Hi Community ,

 

Is there anybody who has tackled a requirement of enabling a confirmation pop-up once the Post Button is clicked with/without DOM manipulations ?

I am able to get to a point where on click of the Post button , the confirmation box appears.

However, an OK or CANCEL still inserts a record into the additional comments.

 

find_real_file.png

8 REPLIES 8

Hi,

did you try giving alert line by line to check till where it is running?

Regards

Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

it goes well inside the appropriate loops but does not terminate the action inspite of return false

Harsh Vardhan
Giga Patron

why do you want confirmation popup on "post" button click ? Its highly recommended from service-now to avoid DOM as much as possible. it might be possible ID would be change after upgrade , so again this customization would be highly maintainable.

 

may i know the use case?  

 

 

Hi Harsh,

 

The use-case is that we have an alert that comes on the update button since this going into the HR file record for a user.

Post button also does the update part but without the alert.

The HR folks want to have it consisten.

 

BR

Nitin