Popup for portal onclick
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2024 04:01 AM
How to create pop up in service portal knowledge article page when user click on not helpfull button. It's a read only widget but have to create pop-up to display
Thankyou
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2024 04:24 AM
Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2024 04:35 AM - edited ‎04-23-2024 04:40 AM
Hi @servicenow_devo ,
HTML -
<button ng-click="c.onConfirm()" class="btn btn-default"> Confirm </button>
<span>{{c.confirmed}}</span>
Client script
function(spModal) {
var c = this;
c.onConfirm = function() {
c.confirmed = "asking";
spModal.confirm("Can you confirm or deny this?").then(function(confirmed) {
c.confirmed = confirmed; // true or false
})
}
}
Image for reference
Please check the below script may be this will work
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak