How to display a confirmation Pop up in Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2022 04:25 AM
Hi Team,
We have a catalog item and user will be filling the details in the catalog item form in service portal. While user is submitting the request it should display the message stating "Are you sure to submit the request: requested for" and it should contain ok and cancel button. If user is selecting ok it should submit the request. If user is selecting cancel then it should be in the same page. Kindly help me to achieve this,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2022 07:10 AM
Do you have a variable on your catalog item to store the Requested for user?
Regards,
Chris Perry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2022 12:08 PM
Hi Chris,
We have a variable in catalog item to store the requested for user in the form.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2022 06:07 AM
What is the name of that variable? Is it different than 'requested_for'?
Regards,
Chris Perry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2022 02:52 AM
Hi Chris,
Variable name is requested_for only. Please help me on this.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2022 06:00 AM
Ok, can you please post a screenshot of the popup behavior from below line of code?
var popup = confirm('Are you sure to submit the request ' + g_form.getDisplayBox('requested_for') + '?');
If this answer is helpful please mark correct and helpful!
Regards,
Christopher Perry
Regards,
Chris Perry