UI Builder / Workspace / Native Form

IronPotato
Mega Sage

Hi All,

 

I'd like to ask, whether there's any option to write single client script in UI builder / Workspace that would also work on native form? For example I will write client script that will show field message on particular field but it will also work on native form in native UI. 

 

So instead of 20 client scripts for each field, workspace will control both, workspace form and native form.

 

Thank you

10 REPLIES 10

SatheeshKumar
Kilo Sage

HI @IronPotato 

Setting UI Type to All should make it working in both native and workspace.

 

SatheeshKumar_1-1709731972789.gif

 

 

 

Hi @SatheeshKumar ,

 

client script would sit in Workspace not in native UI form client script. I want to avoid writing client script for each field in form.

What do you want to achieve in the client script? If it is showing field message that you can do in pone client script as Sateesh mentioned. 

If it is changing the field behavior then it can be IT can be a UI policy on same lines.

 

-Anurag

Hi @Anurag Tripathi ,

 

I want to control behavior of form from workspace (which I already do), but these changes are not reflecting in native servicenow form.

 

 'What do you want to achieve' : Not writing 20 client script for each individual field in native form but move logic into workspace and do it once for each field BUT this logic will also reflect on native form