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

Justin Abbott
Giga Guru

Here's a resource that might help you out.



Using $uibModal: Modal Windows in Service Portal - ServicePortal.io - Service Portal, CMS, and Custom Apps


Thanks Justin, It worked for me


Community Alums
Not applicable

Hi Justin,

 

I have created the button on service portals as per your suggested .i have one problem with that once clicked on button the ui page opened at that time date and date/time fields are highlighted.

may i know the what is the issue. 

find_real_file.png

jyoti29208
Giga Expert

Hi Divya,,



Below piece of code that might help you:



Ui page:


<button class="listactions" type="submit" onClick="return termsOK();" name="sub_btn" > Submit </button>


on client script:


function termsOK(){  


alert("Test");  


    return true;  


    }


Also you can refer this link:http://www.servicenowguru.com/system-ui/glidedialogwindow-advanced-popups-ui-pages/



Please provide your feedback appropriately (Like, Helpful, Endorse AND/OR Correct) to help community.


Thank you!