Help with SPSurveyAPI

jefersonrocha
Kilo Explorer

When I tried to edit the My surveys widget, I received the following message: "This widget is in the Service Portal Surveys application, but Global is your current application. You can clone this widget by clicking the button in the top right corner of the editor".

I went and cloned the widget so I could edit the same, but now I'm receiving the message: "Server JavaScript error "SPSurveyAPI" is not defined."

I believe this is happening because I'm now on Global Application.

Is ther a way for me to properly define the API so I can continue with the modifications?

3 REPLIES 3

Manjeet Singh
ServiceNow Employee
ServiceNow Employee

Ashley
Kilo Sage

Hello,



I had the same problem with this error, its because you cloned the Widget while having Global set as your Application.



These Steps are in Jakarta



Steps:


1: Delete the Cloned Widget you made


2: Go to your homepage in ServiceNow


3: Click on the Gear icon in the Top Right-hand Corner:


4: Go to the Developer Tab:


find_real_file.png


5.Change the Application from Global to Service Portal Surveys, up to you if you want to save the changes in the Default Update Set or create a new Update set in the Service Portal Surveys Application.


6. Go back to the Widget and Clone over it again.



Will have the freedom to edit it now and the error will be gone.



Hope this helps


petecashman
Tera Contributor

Awesome.  I had the same issue.  Thanks.