We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
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

Trouble using custom widget extended from a standard widget

Accepted answer
edited Jun 7, 2018 12:19AM in Customer Portal 6 comments



When I try to use my custom widget MyEmailCredentials which extends from EmailCredentials, I get a Javascript error which says that RightNow.Widgets.EmailCredentials does not exist so the code in logic.js cannot be defined and run.

It's almost as if I need to have the parent widget on the page before I can use my custom one but I don't want this.

Others have had this issue in the past on the forums here but their issues were never resolved.

Many thanks,



Oracle Service Cloud 17D (Build 267 SP 4, CP 103) / Framework Version 3.7

Code Snippet

Custom.Widgets.login.MyEmailCredentials = RightNow.Widgets.EmailCredentials.extend({ 
     * Place all properties that intend to
     * override those of the same name in
     * the parent inside `overrides`.
    overrides: {
         * Overrides RightNow.Widgets.EmailCredentials#constructor.
        constructor: function()

Howdy, Stranger!

Log In

To view full details, sign in.


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