GildeURL is not defined. Javascript error in browser console after Kingston patch

Akshata5
Tera Guru

find_real_file.png

Can anyone help me to give the alternate code for GlideURL() in below script as it is not supported in Kingston.This is very urgent for me.

After Kingston upgrade I get Javascript error in my dev instance.

When I check in console below is the error. GildeURL is not defined.

 find_real_file.png

 

Below is the onload client script.

function onLoad() {

             

              var gURL = new GlideURL();

              gURL.setFromCurrent();

              var event = gURL.getParam("sysparam_marketing_event");

              var eventCount = gURL.getParam("sysparam_marketing_event_count");

              //alert(event);

              if(event && eventCount){

              g_form.setValue('marketing_event',event);

              //g_form.setValue('special_instructions',eventCount);

              }

             

}

 

1 ACCEPTED SOLUTION

Hi Ankur,

Issue got resolved after changing the client script ui type to desktop from All.

 

Regards

Akshatha

View solution in original post

8 REPLIES 8

Hi Akshata,

Any update on this?

Did you check with ServiceNow whether this is a known issue.
Can you mark my answer as correct, helpful and hit like if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

Issue got resolved after changing the client script ui type to desktop from All.

 

Regards

Akshatha

Not working ...

Hi,

I would suggest to open a new question as this is quite older post.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader