How to call a ui page or dialog window on click of button in Service Portal

divyalakshmi
Tera Guru

Hi All,

I am building a service portal where i have a widget with a button. On Click of this button a small dialog window or ui page with few html inputs should pop up and the inputs from this page should be saved in the backend.

Can any one give me insights on calling a ui page or dialog window from widget.

Thanks,

Divya Lakshmi.

1 ACCEPTED SOLUTION

Justin Abbott
Giga Guru
5 REPLIES 5

srevinU
Kilo Contributor

Hello,

I'm trying to handle the same thing but unfortunately my pop-up window is not called.

You will find my script below:

HTML Template:

<!-- BUTTON SAVE -->
      <div class="btn_save">
        <button type = "button" class = "save_form" ng-click="clickMethod()">Save</button>
      </div>

Client Script:

function clickMethod() {
	alert("Function called");
  if(confirm("Are you sure to delete ?")) {
    console.log("Implement save functionality here");
  }
}

I'm trying in this step to check if the call is working and run the function to display the 'alert' message. Any idea  why the function is not called ? 

Many thanks for your help !