Notifications

9 views

Description

Survey Dependent question does not display when clicked on display value of Survey Question - Image Scale.

Steps to Reproduce

Tested on Madrid Patch2
************************

Steps to reproduce:
1. Create new survey with 1st question as image scale, add two images (e.g. Happy and Sad)
2. Second question will be string (dependent on first question only when sad is selected).
3. Preview survey.
4. Try clicking on display value of sad option - It will not display dependent question.
PS. If you click on SAD IMAGE, it will show dependent question.

Expected behavior - Clicking on display value should also display the dependent question.

Actal Behavior - Clicking on display value does not display the dependent question.

Workaround

The workaround is to copy paste the code below into the last position of 'addLoadEvent' function in 'Client script' part of UI Page 'assessment_take2' (sys_ui_page_012918babfb001007a6d257b3f073996). 

 

// This is a workaround of PRB1341395, which fixes
// image scale could not trigger dependent question issue
var buttons = $j('label.imageScaleLabel').find('button');
buttons.each(function(i) {
var oldOnclick = $j(this).attr('onclick');
var onclickArray = oldOnclick.split(';');
onclickArray.splice(3, 0, 'event.target == this && $(this).parentElement.click()');
var newOnclick = onclickArray.join(';');
$j(this).attr('onclick', newOnclick);
});


assessment_take2 - https://<instance-name>.service-now.com/nav_to.do?uri=sys_ui_page.do?sys_id=012918babfb001007a6d257b3f073996 

Since this is a change in db level, it will block this ui page record being upgraded during the future system upgrade. This ui page should be manually fixed after the next upgrade (probably upgrade to NY). 


Related Problem: PRB1341395

Seen In

SR - Security - Integration Framework - Madrid 2019 Q2
SR - Security - Support Common - Madrid 2019 Q2
SR - Security - Support Orchestration - Madrid 2019 Q2
SR - SIR - Security Incident Response - Madrid 2019 Q2
SR - SIR - Store SecOps Setup Assistant - Madrid 2019 Q2
SR - SIR - Store Threat Core - Madrid 2019 Q2
SR - SIR - Store Trusted Security Circles Client - New York 2019 Q3

Intended Fix Version

New York

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-08-07 14:26:31
Published:2019-07-18