Service Portal Widget Client Script "Missing name in function declaration"

xiaix
Tera Guru

find_real_file.png

find_real_file.png

If I go here:

find_real_file.png

Choose a widget, and try to do anything like, Save, Update, or Insert and Stay, I get those errors.

If I go into the SP Configuration tool and edit the widget code, it'll save just fine.

I need to do an Insert and Stay.   Yes, I can go into the SP Configuration and "Clone" the widget, but it seems to me that doing it the other way is "broken".

1 REPLY 1

Shahed Shah1
Tera Guru

I have noticed it but paid no attention to that at all. I reckon that this is down to the syntax checker where it wants an actual function definition, i.e.


function functionName(param1, param2)



But instead we can have function(parm1, parm2) due to the nature of the Service Portal, which allows for this in the Widget Editor.



As I spend most of my time in the Editor, I really paid no mind to it at all. However, it would be prudent to raise this to Customer Support and see about creating a Problem for the Development team to reduce this "noise".