Client controller must contain a JavaScript function, see default value error

--oooo--
Tera Contributor

Hello All,

I am trying to make a clone of my custom widget but when clicking on the clone widget button I am getting an error.

I have attached the error screenshot below of why I am getting the error .can anyone please guide me on this?

Thank You.

13 REPLIES 13

--oooo--
Tera Contributor

@jaheerhattiwale and @Veer please guide me on above problem.

@--oooo--  Could you share the full widget code, HTML, Client controller, and server script. I will review it and let you know. also please let me know the details about your requirement, it helps to debug the issue.

Basheer
Mega Sage

Hi @--oooo-- ,

There would be a field called as Client Controller on your widget. In that mention as c.

Because there is no value in client controller it is throwing that kind of errror.

 

Please hit like button if my suggestion has helped you in any way.
Please mark correct if my response has solved your query.

Cheers,
Mohammed Basheer Ahmed.

--oooo--
Tera Contributor

Hello @Basheer so I need to remove that c value am I right?