com.glide.script.RhinoEcmaError: Unexpected token: u
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2023 08:35 AM - edited ‎12-03-2023 10:00 PM
Hello All,
I have a catalog item in scoped appliacation which does attachment validation prior attaching to the variable using Onsubmit CS and script include, both works fine in native UI but it throws an error in sp saying -There is a javascript error in your browser console,
Could anyone please suggest me where should I make changes, to fix this issue?
Onsubmit CS:
Script Include:
Thank you in advance!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2023 09:20 AM
@ujjwala_678 You are using
g_form.getControl('oi_order_now_button').click();
g_form.getControl method is not supported on the Service Portal.
Since this method is not supported, hence you are seeing the javascript error in the console.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2023 09:56 PM
Hello,
Thank you for your inputs on this.....Could you suggest me any other method which i can use in my code so that client script will not throw any error even on sp?
Thank you!