You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Getting JavaScript error in logic.js file of customized ChatAttachFileButton widget

Received Response
29
Views
2
Comments
edited Jul 17, 2018 2:49PM in Customer Portal 2 comments

Content

I would like to extend  the functionality of ChatAttachFileButton widget.I need to override the view file of the custom widget.
When I used the standard logic.js file code in custom widget's logic file, I am getting the following error message  "The following widget JavaScript either has a syntax error or its class name is not correct . Please see the code snippet for your reference.

Version

Oracle Service Cloud 18A (Build 260, CP 322) SP4, Customer Portal 3.7

Code Snippet

             RightNow.namespace('Custom.Widgets.chat.ChatAttachFileButtonCustom');
Custom.Widgets.chat.ChatAttachFileButtonCustom = RightNow.Widgets.FileAttachmentUpload.extend({
    overrides: {
        constructor: function() {
            this.parent();
            this._container = this.Y.one(this.baseSelector);
            this._dialog = null;
            this._keyListener = null;
            this._positionDuringUpload = this.data.attrs.position_during_upload;
 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!