Client controller must contain a JavaScript function, see default value error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2023 03:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2024 12:22 AM
Hi @--oooo--,
I had this exactly same error in our system when editing widgets, it was because there were too many or too few spaces in Client Controller code, see example below. After editing the code I was able to save my widget.
Br,
j0unss
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2024 12:07 PM
I got this error while trying to clone in the platform view, but was able to clone in the widget editor by using the options in the hamburger menu.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2024 05:17 AM
client controller must starts with api.controller at line no1 only. here in the screenshot we have space at line no1. remove the first line space and try it will work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2024 04:57 AM
I am also facing the same issue... Please find below screenshot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-23-2026 12:16 PM
I came across this issue and noticed that both the client controller and controllerAs are set to “c". However, when the widget is opened and edited in the Widget Editor (/sp_config?id=widget_editor), the configuration can be saved successfully without any errors or validation issues. I have created several widgets but never has faced this before.