Submit button pops up error alerts on a scoped app
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2024 06:59 AM
Hi experts,
we cloned the ootb form widget to a scoped app and when using the submit button on a new record (save button) it's inserts a new record to a table but pops up some error alerts:
here is the HTML code (same as OOB) :
<button ng-if="getPrimaryAction()" type="submit" ng-click="triggerUIAction(getPrimaryAction())" ng-disabled="submitting" class="btn btn-primary action-btn pull-right" gsft_id="{{::getPrimaryAction().sys_id ? getPrimaryAction().sys_id : ''}}">${Submit}</button>
client and server scripts are same as OOB as well.
when using same button to update existing record, there are no alerts.
I believe it's a scoped app issue, so I've tried to change the ActionUtil script include to be accssible from all scopes
we still see error alerts, but different:
did someone faced this kind of issue? if yes, what would be the best approach to solve?
Thanks,
Tomer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2024 10:29 AM - edited 12-23-2024 10:30 AM
Thank you @JenniferRah , but still I got this error, after I've set the script include to be accessible from other scopes

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2024 10:34 AM
In your code, where you call ActionUtils, change it to say global.ActionUtils. By default, it searches in the current scope for the utility. You have to explicitly tell it to look in global since it's not in your scope.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2024 12:00 PM
Yeah, as I mentioned, i’m not calling it directly from the widget, just used the oob functionality, not sure how it’s called behind the scenes…

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2024 12:08 PM
If you can't dig into the code behind the button, it might be best to put the button in the global scope.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2024 07:52 AM
Thank you everyone!
In the end, I was able to solve it by comment out the OOTB call to ActionUtils in the table Submit ui action script: