Manipulating the "Post" button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2020 07:42 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2020 09:17 PM
Hi,
did you try giving alert line by line to check till where it is running?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2020 10:40 PM
it goes well inside the appropriate loops but does not terminate the action inspite of return false

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2020 11:06 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2020 10:52 PM
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