The function toggleHelp() is obsolete in Geneva and it causes JavaScript errors on catalog client scripts.

Steps to Reproduce


  1. Log in to an instance with base system Geneva release installed.
  2. Import the catalog client script (see XML attachment).
  3. Open your browser developer console.
  4. Go to <site>.service-now.com/ess/create_incident.do.
  5. Note the javascript error displayed:
    Uncaught TypeError: Cannot read property 'style' of null
    if (wrapper.style.display=="block") {  <--Line of code throwing error


The following workaround was suggested in the ServiceNowGuru developer blog:

var myVar = g_form.getControl('[name_of_variable]');
var myVarHelp = $('question_help_IO_' + myVar.id.split(':')[1] + '_toggle');

Related Problem: PRB657798

Seen In

Dublin Patch 8 Hot Fix 3
Fuji Patch 11
Fuji Patch 9 Hot Fix 1
Geneva Patch 1
Geneva Patch 1 Hot Fix 5
Geneva Patch 3
Geneva Patch 4
Geneva Patch 5
Geneva Patch 5 Hot Fix 3

Fixed In

Geneva Patch 5

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2016-11-15 10:38:36