We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

How to call UI script in client script

sunnysunny
Kilo Contributor

I created a simple ui script, as mentioned below. How can I call this from client script?

function displaytitle()

{

  var a= g_form.getValue('number');

  var b= g_form.getValue('short_description');

  if(a && b)

{

  top.document.title= a +'-'+ b;

}

  else

  {

  alert('hello');

  }

}

15 REPLIES 15

Rupesh Pulamar1
Kilo Expert

Hi Sunny,

Please check with this ., It might be helpful for you

ScriptLoader.runScripts('ui script name' , function(){})

using this you can call ui scripts from client script but before create a macro and related formatter and then add it on your table.

check  with this link of calling ui script in London version

GlideUiScripts

 

Thanks & Regards,

Rupesh Pulamarasetty