The Server Script and Client Script in Service Portal Widget Editor is reflecting as empty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
When I am opening any widget in editing mode in Widget Editor and when I try to see the codes defined under Client Script & Server Script for a specific widget, they are reflecting as empty, but the HTML and CSS sections contains specific codes.
Now, when I am opening that same widget in Platform/Native view, I can see that the Client & Server script sections have proper code defined in them.
Prefer refer the screenshot which I've attached.
I've already tried clearing browser and instance cache
I've also checked acls, but this is not related to it because even though I am having "admin" and "sp_admin" role I am not able to see.
Please help me here as I am unable to understand what could be the possible reason for this issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hi @IndranilDutta ,
This might be a PDI-related platform issue, as Personal Developer Instances are sometimes not fully consistent and can show unexpected behavior like this.
You can try exporting the widget XML from another PDI or instance and importing it into your current instance to verify whether the scripts appear correctly. It could simply be a temporary platform glitch.
Thanks and regards,
Siddhesh Jadhav
If this answer helped resolve your query, please accept it and mark it as helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4m ago
Hello @IndranilDutta ,
1.Always open widget directly from
Service Portal → Widgets
2.Scoped Application Restriction
If widget belongs to another scope (for example HRSD or a custom scoped app)
The Widget Editor sometimes fails to load scripts properly due to scope mismatch
3.You Are Opening a Cloned or Overridden Widget Instance
In Service Portal architecture:
Widget record → Contains actual Client & Server scripts
Widget Instance → May override only HTML/CSS
Sometimes:
HTML/CSS are overridden at instance level
Client & Server scripts remain at base widget level
Widget Editor shows only instance-level overrides → So scripts appear blank
You can check:-
Open the widget in Platform view
Check field:
"Widget" reference
OR check if it’s a cloned widget
Compare:
sp_widget table record
Instance record (sp_instance)
If scripts exist in sp_widget but not in sp_instance, that’s the reason.
