Create a pop up alert with a clickable link in workspace

Vijay Kumar21
Tera Contributor

Hi Team,

 

When user click the UI action in workspace then popup needs to appear with the click clickable based on the user preference.

I was able to create below script in UI action but I am not able to implement this in workspace client script selection.

 

Could anyone help on this?

 

function onClick(){
    var dd = new GlideModal('Confirm');
    dd.setTitle('Confirm');
    dd.renderWithContent('<div><a href="tel:+-499-7112">Phone number:+-499-7112</a></div>');
}

 

 

1 REPLY 1

Dibyaratnam
Tera Sage

The implementation of UI Action on workspace side works bit differently especially for modals. you have to write your logic in workspace client script field in the corresponding UI Action.

https://www.servicenow.com/community/next-experience-articles/how-to-use-ui-actions-in-workspaces/ta...

 

Mark my answer as helpful if it helps.