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.


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 - IRM - Audit Management - New York 2019 Q3
SR - IRM - GRC Profiles - Madrid 2019 Q2
SR - IRM - GRC Workbench - New York 2019 Q3
SR - IRM - PA Premium Integration - New York 2019 Q3
SR - IRM - Policy and Compliance - Madrid 2019 Q2
SR - IRM - Risk Management - New York 2019 Q3
SR - IRM - SIG Assessment Legacy - Madrid 2019 Q1
SR - IRM - Vendor Risk Management - Madrid 2019 Q1
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

Fixed In

New York

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2020-02-21 11:59:45