- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2023 02:38 AM
The customer is not able to comment on Idea portal. After impersonating that user. Please, Can any help me. As below I am attaching the screenshot. Error getting is There is a JavaScript error in your browser console
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2023 07:59 AM
Hey Shivam,
Please check the client scripts running on the page. These errors generally occur due to the client scripts that are not checked all in the "UI TYPE".
Mark all the client scripts to work on all UI TYPE instead of Desktop only.
Regards,
Prashanth Reddy
Please mark helpful If I am able to resolve your issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2023 11:55 PM
Hey Shivam,
You will find more details about the error in the browser console. Go to that script and troubleshoot from there. In order to open the browser developer tool console,
- Right-click anywhere on the form.
- Select Inspect
- Select the Console tab
Find the Client script that is causing the issue. You will either need to update this script to work on both portal and backend views, or you will need to write a different script to run only on the portal, and leave the current script to run only on Desktop.
Regards,
Prashanth Reddy
Please mark helpful If I am able to resolve your issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2023 07:59 AM
Hey Shivam,
Please check the client scripts running on the page. These errors generally occur due to the client scripts that are not checked all in the "UI TYPE".
Mark all the client scripts to work on all UI TYPE instead of Desktop only.
Regards,
Prashanth Reddy
Please mark helpful If I am able to resolve your issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 12:27 AM
Hello Prashanth,
I have tried. Still I am not able to resolve my issue.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2023 11:55 PM
Hey Shivam,
You will find more details about the error in the browser console. Go to that script and troubleshoot from there. In order to open the browser developer tool console,
- Right-click anywhere on the form.
- Select Inspect
- Select the Console tab
Find the Client script that is causing the issue. You will either need to update this script to work on both portal and backend views, or you will need to write a different script to run only on the portal, and leave the current script to run only on Desktop.
Regards,
Prashanth Reddy
Please mark helpful If I am able to resolve your issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2023 05:00 AM - edited 09-21-2023 05:12 AM
Hello Prashanth,
I have tried above step as you mention , Still I am not able to resolve my issue, As below I am attaching the screen shot of console.
I am getting error in fetchComments and getCommentId.
As below I am pasting the code , please can you review it.
fetchComment
(function process( /*RESTAPIRequest*/ request, /*RESTAPIResponse*/ response) {
var cfCommentDataService = new CFCommentDataService();
return cfCommentDataService.getNewCommentId();
})(request, response);
Thanks & Regards
Shivam