Pop up in portal

servicenow_devo
Tera Expert
  • 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
1 REPLY 1

Community Alums
Not applicable

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 

SarthakKashya2_0-1713872494772.png

 

 

SarthakKashya2_1-1713872495061.png

 

 

Please check the below script may be this will work

https://www.servicenow.com/community/developer-articles/custom-popup-record-look-up-widget/ta-p/2322...

 

Please mark my answer correct and helpful if this works for you

 

Thanks and Regards 

Sarthak