Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to use UI actions on Portal side?

HaowenX
Tera Contributor

Hi, good days.

 

I'm now creating a catalog item and there is a specific requirement.

The requirement: to make sure that every applicant read the guideline before apply.

 

My logic is to use UI action as below:

1.put a button or hyperlink on portal view.

2.after applicant clicks the button or hyperlink, open a new window to show the guideline and make other entry fields visible.

 

My UI action works well on legacy view of table.

My setting is

HaowenX_0-1743682322999.png

the script is:

function OpenWebPage(){
	
var tableName = g_form.getTableName();
var sysId = g_form.getUniqueValue();
var windowName = 'PrintOut' + tableName;

var url = 'https://www.google.co.jp/';

var varWindow = g_navigation.openPopup(url, 'resizable,scrollbars,status',true);
varWindow.print();

}

How can I make it available on portal side?

 

If UI action is not available for portal, is there any other solutions?

 

regards!

0件の返信0