UI Builder / Workspace / Native Form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 05:11 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 05:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 05:36 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 05:48 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 05:54 AM
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