Let's Reconnect, thank you for making 2022 our best year yet.

Look Back
Widget not working in Staging area — Cloud Customer Connect
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

Widget not working in Staging area

Received Response
14
Views
4
Comments
edited Jun 7, 2022 1:09PM in General Technical Discussions 4 comments

Content

Hi,

Our customer portal is recentaly upgraded. We have customized a selection input widget by overriding its view. By using the click event, a function is called. This is working in the development area correctly without any issue.

After staging the same widget, the click event is not properly working in the staging area. That is we need to refresh the site multiple times then only the click event is working

Any one know why this is happening in the staging  but not in development area?

Code Snippet

             RightNow.namespace('Custom.Widgets.ResponsiveDesign.testchanneldisplay');
Custom.Widgets.ResponsiveDesign.testchanneldisplay = RightNow.Field.extend({ 
   overrides: {
        constructor: function(){
			console.log("control execution 1");
            if (this.data.js.readOnly) return;

			this.data.attrs.required=false;
		   
            /******************************* Primary[top level] category name and id code start, Self service form details*****************************************/
            var FieldName = this.data.js.name;
			//console.log(FieldName);
			var url=String(window.location);   
        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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