How to Show short description on record to identify what inc, req or task the survey is for

bsk
Kilo Expert

How could we show TASK Number (RITM or Incident) and   short description can be showed on Assessment record so that the user completing a survey can tell what incident or request sent the survey without having to verify based on the inc, req, ritm or task numbers.

Survey - how to Show task number & short description on record to identify what inc, req or task the survey is for.

Please find the attachment for example on how should the surveys look like, Any suggestions or recommendation would be really helpful.

Thanks in Advance.survey1.PNGsurvey.PNG

4 REPLIES 4

SanjivMeher
Kilo Patron
Kilo Patron

Hi,



Please check the below link, if it is helpful.



https://community.servicenow.com/thread/215321?q=Passing%20incident%20number%20to%20survey



Please mark this response as correct or helpful if it assisted you with your question.

Hello,


Sanjiv,



i viewed that thread and tried replacing given script in "assessment_take2". It did not work as expected i am not sure if have placed it in correct place. Below is script that i have in my instance can you help me in updating that as per the thread where to update. Thank you.



<?xml version="1.0" encoding="utf-8" ?>


<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">


<j:if test="${GlideMobileExtensions.getDeviceType() != 'doctype'}">


<g:requires name="scripts/lib/jquery_includes.js" />


</j:if>


<g:requires name="scripts/json2.jsx" />


<g:requires name="scripts/catalog.js" includes="true" />


<g:requires name="scripts/js_includes_assessment.js" includes="true" />




<j:set var="jvar_isComingFromSurveyCreator" value="${sysparm_isSurveyCreator}" />


<j:set var="jvar_isReaderView" value="${HTML:sysparm_reader_view}" />


<j:set var="jvar_hidepreview" value="no" />


<g:evaluate jelly="true" var="jvar_assessable_type">


var metricTypeId = '';


if(typeof jelly.sysparm_assessable_type !== 'undefined'){


metricTypeId = SNC.GlideHTMLSanitizer.sanitize(jelly.sysparm_assessable_type);


var metricTypeRegex = new RegExp("^\\w{32}$");


if(!metricTypeRegex.test(metricTypeId)){


metricTypeId = '';


}


}


metricTypeId;


</g:evaluate>


<g2:evaluate var="jvar_attachrole" expression="gs.getProperty('glide.attachment.role')" />


<g:evaluate var="jvar_hideClose" jelly="true">


var hideClose = jelly.sysparm_hide_close == 'true';


hideClose;


</g:evaluate>


<g:evaluate var="jvar_assessment_type">


var metricGR = new GlideRecord("asmt_metric_type");


metricGR.addQuery('sys_id', '${jvar_assessable_type}');


metricGR.query();


var evaluation_type = gs.getMessage('assessment');


if (metricGR.next())


evaluation_type = metricGR.evaluation_method.getChoiceValue().toLowerCase();


evaluation_type;


</g:evaluate>


<g:evaluate var="jvar_is_public_survey">


var isPublicSurvey = "false";


var metricGR = new GlideRecord("asmt_metric_type");


metricGR.addQuery('sys_id', '${jvar_assessable_type}');


metricGR.query();


if (metricGR.next() ${AND} metricGR.allow_public ${AND} '${jvar_assessment_type}' == 'survey')


isPublicSurvey = "true";


isPublicSurvey;


</g:evaluate>


<g:evaluate var="jvar_redirect_to_login">


var isUserLoggedIn = gs.isLoggedIn();


var redirectLogin = "false";


if('${jvar_is_public_survey}' == 'false' ${AND} !isUserLoggedIn)


redirectLogin = "true";


redirectLogin;


</g:evaluate>


<j:if test="${jvar_redirect_to_login == 'true'}">


<script>document.location.href = "assessment_redirect.do?sysparm_survey_url=${sysparm_this_url}";</script>


</j:if>


<g:evaluate jelly="true" var="jvar_assessable_sysid">


var asmtInstanceId = '';


if(typeof jelly.sysparm_assessable_sysid !== 'undefined'){


asmtInstanceId = SNC.GlideHTMLSanitizer.sanitize(jelly.sysparm_assessable_sysid);


var asmtInstanceRegex = new RegExp("^\\w+$");


if(!asmtInstanceRegex.test(asmtInstanceId)){


asmtInstanceId = 'invalidsysid';


}


}


if (asmtInstanceId == '') {


var instance = new SNC.AssessmentCreation().createOrGetAssessment('${jvar_assessable_type}', '', gs.getUserID());


} else if(asmtInstanceId =='invalidsysid'){


instance = 'invalidsysid';


}else{


var temp = new SNC.AssessmentCreation().checkAssessmentAllowed('${jvar_assessable_type}', asmtInstanceId, gs.getUserID());


if ('${sysparm_isSurveyCreator}' == 'yes' || ('${jvar_isReaderView}' == 'true' ${AND} gs.hasRole('survey_admin')))


var instance = asmtInstanceId;


else if (temp != "" ${AND} temp != "wip")


var instance = temp;


else


var instance = asmtInstanceId;


}


if (instance.substring(0, 6) == 'notyet') {


var when = instance.substring(6);


instance = 'notyet';


}


instance;


</g:evaluate>




<g:requires name="styles/assessment.css" />


<j:if test="${jvar_assessable_sysid == 'invalidsysid'}">


<g:evaluate>


var msg = gs.getMessage('The assessable record is invalid');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${jvar_assessable_sysid == 'completed'}">


<g:evaluate>


var msg = gs.getMessage('You have completed this {0}', '${jvar_assessment_type}');


gs.addInfoMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${jvar_assessable_sysid == 'canceled'}">


<g:evaluate>


var msg = gs.getMessage('This {0} has been canceled', '${jvar_assessment_type}');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>



<g:evaluate var="jvar_inst_due_date" jelly="true">


var inst_due_date = jelly.sysparm_inst_due_date;


inst_due_date;


</g:evaluate>




<j:if test="${jvar_assessable_sysid == 'save'}">


<j:if test="${jvar_inst_due_date == ''}">


<g:evaluate>


var msg = gs.getMessage('Your responses have been saved');


gs.addInfoMessage(msg);


</g:evaluate>


</j:if>


<j:if test="${jvar_inst_due_date != ''}">


<g:evaluate>


var msgArr = [];


msgArr.push('${jvar_assessment_type}');


msgArr.push('${jvar_inst_due_date}');


var msg = gs.getMessage('Your responses have been saved. You can complete this {0} before {1}', msgArr);


gs.addInfoMessage(msg);


</g:evaluate>


</j:if>


</j:if>




<j:if test="${jvar_assessable_sysid == 'cancel'}">


<j:set var="jvar_isUserLoggedIn" value="${isUserLoggedIn}" />


<j:if test="${jvar_inst_due_date == '' || !jvar_isUserLoggedIn}">


<g:evaluate>


var msg = gs.getMessage('Your responses have not been saved');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>


<j:if test="${jvar_inst_due_date != '' &amp;&amp; jvar_isUserLoggedIn}">


<g:evaluate>


var msgArr = [];


msgArr.push('${jvar_assessment_type}');


msgArr.push('${jvar_inst_due_date}');


var msg = gs.getMessage('Your responses have not been saved. You can complete this {0} before {1}', msgArr);


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>


</j:if>




<j:if test="${jvar_assessable_sysid == 'close'}">


<g:evaluate>


var msg = gs.getMessage('Preview has been closed');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${jvar_assessable_sysid == 'notyet'}">


<g:evaluate>


var msg = gs.getMessage('You have recently completed this Survey, it will be available in the future');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${(jvar_assessable_sysid == 'not_authorized')}">


<g:evaluate>


var msg = gs.getMessage('You are not authorized to take this {0}', '${jvar_assessment_type}');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${jvar_assessable_sysid == 'not_available'}">


<g:evaluate>


var msg = gs.getMessage('This {0} is not currently available, check back later', '${jvar_assessment_type}');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${jvar_assessable_sysid == 'invalidtype'}">


<g:evaluate>


var msg = gs.getMessage('There was an unexpected failure with this assessment, invalid type provided');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${jvar_assessable_sysid == 'inactive'}">


<g:evaluate>


var msg = gs.getMessage('This {0} is no longer active', '${jvar_assessment_type}');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${jvar_assessable_sysid == 'draft_state'}">


<g:evaluate>


var msg = gs.getMessage('This {0} has not yet been published', '${jvar_assessment_type}');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${jvar_assessable_sysid == 'isscheduled'}">


<g:evaluate>


var msg = gs.getMessage('An incorrect assessment or survey was provided - on demand expected');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${jvar_assessable_sysid == 'notsurvey'}">


<g:evaluate>


var msg = gs.getMessage('An incorrect assessment was provided - survey expected');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${jvar_assessable_sysid == 'nousers'}">


<g:evaluate>


var msg = gs.getMessage('Unable to generate assessment, no user was provided');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${jvar_assessable_sysid == 'nosources'}">


<g:evaluate>


var msg = gs.getMessage('Unable to generate assessment, no source was provided');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${jvar_assessable_sysid.length() == 32}">


<g:evaluate var="jvar_preview">


var isPreview = false;


var gr = new GlideRecord("asmt_assessment_instance");


gr.get(instance);


if (gr.isValidRecord())


isPreview = gr.getValue("preview");


</g:evaluate>


<g:evaluate var="jvar_task_record_url">


var gr = new GlideRecord("asmt_assessment_instance");


gr.get(instance);


var task_record = "";


var task_table = "";


var task_record_url = "";


if(gr.trigger_table){


var tr = new GlideRecord(gr.trigger_table);


if(tr.get(gr.trigger_id)){


task_record_url = gr.trigger_table + ".do?sys_id=" + gr.trigger_id;


task_table = tr.getClassDisplayValue();


task_record = tr.getDisplayValue();


}


}


task_record_url;


</g:evaluate>


<g2:evaluate var="jvar_can_write">


var gr = new GlideRecord('asmt_assessment_instance');


gr.get(instance);


gr.canWrite();


</g2:evaluate>


</j:if>


<j:if test="${jvar_assessable_sysid.length() != 32}">


<g:evaluate var="jvar_preview">


var isPreview = false;


</g:evaluate>


<g:evaluate var="jvar_task_record_url">


var task_record_url = "";


var task_record = "";


var task_table="";


</g:evaluate>


</j:if>


<j:if test="${isPreview == true}">


<g:evaluate var="jvar_hidepreview">


if ('${sysparm_isSurveyCreator}' == 'yes') {


value = 'no';


} else {


var metricGR = new GlideRecord("asmt_metric_type");


metricGR.addQuery('sys_id', '${jvar_assessable_type}');


metricGR.query();


if (metricGR.next())


metricGR.deleteRecord();


value = "yes";


}


</g:evaluate>




<j:if test="${jvar_isComingFromSurveyCreator != 'yes'}">


<g:evaluate>


var msg = gs.getMessage('This preview instance has not been saved.');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>


</j:if>




<g:ui_form>


<input type="hidden" id="type_sysID" name="type_sysID" value="${jvar_assessable_type}" />


<input type="hidden" id="instance_sysID" name="instance_sysID" value="${jvar_assessable_sysid}" />


<input type="hidden" id="selection_result" name="selection_result" value="" />


<input type="hidden" id="hiddenQuestions" name="hiddenQuestions" value="" />


<input type="hidden" id="attachmentQuestions" name="attachmentQuestions" value="" />


<input name="sys_target" id="sys_target" type="HIDDEN" value="asmt_assessment_instance" />


<input name="sys_uniqueValue" id="sys_uniqueValue" type="HIDDEN" value="${jvar_assessable_sysid}" />


<j:if test="${jvar_hidepreview == 'no'}">


<div class="assessment">


<g2:evaluate var="jvar_type" expression="var typeGR = '';


var instanceGR = new GlideRecord('asmt_assessment_instance');


instanceGR.addQuery('sys_id', '${jvar_assessable_sysid}');


instanceGR.query();


if (instanceGR.next()) {


typeGR = new GlideRecord('asmt_metric_type');


typeGR.addQuery('sys_id', instanceGR.metric_type);


typeGR.query();


}" />


<j2:if test="$[typeof typeGR == 'object']">


<j2:if test="$[typeGR.next()]">


<div class="navbar navbar-default" role="navigation">


<h1 class="navbar-title">$[typeGR.name]</h1>


<j:if test="${isPreview != true}">


<j:if test="${ jvar_isReaderView != 'true'}">


<div class="nav navbar-right">


<g:evaluate var="jvar_no_attachment">


var gr = new GlideRecord('asmt_assessment_instance');


gr.getED().getBooleanAttribute('no_attachment');


</g:evaluate>


<j:if test="${!jvar_no_attachment}">


<j2:if test="$[jvar_can_write == 'true']">


<j2:if test="$[jvar_session.hasRole(jvar_attachrole)]">


<j2:if test="$[GlideMobileExtensions.getDeviceType() == 'doctype']">


<button type="button" onclick="saveAttachment('asmt_assessment_instance', '${jvar_assessable_sysid}');" id="header_add_attachment"


title="${gs.getMessage('Manage attachments')}"


aria-label="${gs.getMessage('Manage attachments')}"


class="btn btn-icon icon-paperclip navbar-btn" />


</j2:if>


<j2:if test="$[GlideMobileExtensions.getDeviceType() != 'doctype']">


<a onclick="saveAttachment('asmt_assessment_instance', '${jvar_assessable_sysid}');" id="header_add_attachment">


<img src="images/icons/attachment.gifx" alt="${gs.getMessage('Attachments...')}"


class="i16x16" title="${gs.getMessage('Attachments...')}" />


</a>


</j2:if>


</j2:if>


</j2:if>


</j:if>


<button class="btn btn-primary navbar-btn" type="submit" onClick="return submitAssessment();" id="submit" name="submit">${gs.getMessage('Submit')}</button>


<j:if test="${isUserLoggedIn}">


<button class="btn btn-default navbar-btn" type="submit" onClick="return saveAssessment();" id="save" name="save">${gs.getMessage('Save')}</button>


</j:if>


<button class="btn btn-default navbar-btn" type="submit" onClick="return cancelAssessment();" id="cancel" name="cancel">${gs.getMessage('Cancel')}</button>


</div>


<div style="clear: both;"></div>


</j:if>


</j:if>


</div>


<g2:attachment_list table='asmt_assessment_instance' sys_id='${jvar_assessable_sysid}'>


<j2:set var="jvar_attachment_url"


value="javascript:saveAttachment('asmt_assessment_instance', '${jvar_assessable_sysid}');" />


<g:inline template="attachment_list_body.xml" />


</g2:attachment_list>


<j:if test="${jvar_task_record_url != ''}">


<input type="hidden" value="${jvar_task_record_url}" name="task_record_url" id="task_record_url"/>


<g2:evaluate>


var msgArr = [];


msgArr.push('${jvar_assessment_type}');


msgArr.push('${task_table}');


</g2:evaluate>


<j2:if test="$[GlideMobileExtensions.getDeviceType() == 'doctype']">


<div class="notification notification-info">


$[gs.getMessage('This {0} is in regards to {1}: ', msgArr)]


<a onClick="openTaskOverlay(event)" class="related-task-link">${gs.getMessage('${task_record}')}</a>


<button data-dismiss="alert" class="btn btn-icon close icon-cross">


<span class="sr-only">Close</span>


</button>


</div>


</j2:if>


<j2:if test="$[GlideMobileExtensions.getDeviceType() != 'doctype']">


<div id="output_messages_container" class="outputmsg_container">


<img class="outputmsg_close" src="images/x.gifx" onclick="closeTaskRecoreMsg()" alt="${gs.getMessage('Close Messages')}" />


<div class="outputmsg outputmsg_info">


<img class="outputmsg_image" src="images/outputmsg_info_24.gifx" alt="${gs.getMessage('Informational Message')}" title="${gs.getMessage('Informational Message')}" />


<div class="outputmsg_text">


$[gs.getMessage('This {0} is in regards to {1}: ', msgArr)]


<a onClick="openTaskOverlay(event)" class="related-task-link">${gs.getMessage('${task_record}')}</a>


</div>


</div>


</div>


</j2:if>


</j:if>


<div>


<!-- end_note may contain HTML formatting -->


<g2:no_escape>$[NS:typeGR.introduction]</g2:no_escape>


</div>


</j2:if>


</j2:if>


<table class="wrap">


<tbody>


<g2:com.snc.assessment_core_take assessment="${jvar_assessable_sysid}" read="${jvar_isReaderView}" />


</tbody>


<j:if test="${jvar_assessable_sysid.length() == 32}">


<g2:evaluate>


var instanceGR = new GlideRecord('asmt_assessment_instance');


instanceGR.addQuery('sys_id', '${jvar_assessable_sysid}');


instanceGR.query();


var signatureGR = null;


if (instanceGR.next()) {


if (!instanceGR.signature.nil()) {


signatureGR = new GlideRecord('asmt_signature');


signatureGR.get(instanceGR.signature);


}


}


</g2:evaluate>




<tfoot>


<tr>


<td>


<j2:if test="$[ signatureGR != null &amp;&amp; isUserLoggedIn]">


<input type="hidden" name="jvar_signature_type" id="jvar_signature_type" value="$[signatureGR.type]" />


<div class="signature">


<div class="assertion">


<j2:if test="$[ signatureGR.type == 'checkbox' ]">


<div id="checkbox">


<j:if test="${jvar_isReaderView == 'true'}">


<j2:if test="$[ instanceGR.signature_result == 'checked' &amp;&amp; instanceGR.state == 'complete' ]">


<input type='checkbox' id='signature_result' name='signature_result' value='checked' checked='true' readonly='readonly' disabled="" />


</j2:if>


<j2:if test="$[ instanceGR.signature_result != 'checked' || instanceGR.state != 'complete']">


<input type='checkbox' id='signature_result' name='signature_result' value='' readonly='readonly' disabled="" />


</j2:if>


</j:if>


<j:if test="${jvar_isReaderView != 'true'}">


<input type='checkbox' id='signature_result' name='signature_result' value='checked' />


</j:if>


<g2:no_escape>$[NS:signatureGR.assertion]</g2:no_escape>


</div>


</j2:if>




<j2:if test="$[ signatureGR.type == 'full_name' ]">


<div id="type_name">


<g2:no_escape>$[NS:signatureGR.assertion]</g2:no_escape>


<input type='text' id='signature_result' name='signature_result' size='35' readonly='true' />


</div>


</j2:if>




<j2:if test="$[ signatureGR.type == 'assertion_only' ]">


<div id="no_assertion">


<g2:no_escape>$[NS:signatureGR.assertion]</g2:no_escape>


</div>


</j2:if>


</div>




<div class="assessmentButtonRow">


<j:if test="${isPreview != true}">


<j:if test="${jvar_isReaderView != 'true'}">


<button class="btn btn-primary" type="submit" onClick="return submitAssessment();" id="submit" name="submit">${gs.getMessage('Submit')}


</button>


<button class="btn btn-default" type="submit" onClick="return saveAssessment();" id="save" name="save">${gs.getMessage('Save')}


</button>


<button class="btn btn-default" type="submit" onClick="return cancelAssessment();" id="cancel" name="cancel">${gs.getMessage('Cancel')}


</button>


</j:if>


</j:if>


<j:if test="${isPreview == true}">


<j:if test="${hideClose != true}">


<button class="button listactions" type="submit" onClick="return closeAssessment();" id="close" name="close">${gs.getMessage('Close')}


</button>


</j:if>


</j:if>


</div>


</div>


</j2:if>




<j2:if test="$[ signatureGR == null ]">


<div class="assessmentButtonRow">


<j:if test="${isPreview != true}">


<j:if test="${ jvar_isReaderView != 'true'}">


<button class="btn btn-primary" type="submit" onClick="return submitAssessment();" id="submit" name="submit">${gs.getMessage('Submit')}


</button>


<j:if test="${isUserLoggedIn}">


<button class="btn btn-default" type="submit" onClick="return saveAssessment();" id="save" name="save">${gs.getMessage('Save')}


</button>


</j:if>


<button class="btn btn-default" type="submit" onClick="return cancelAssessment();" id="cancel" name="cancel">${gs.getMessage('Cancel')}


</button>


</j:if>


</j:if>




<j:if test="${isPreview == true}">


<j:if test="${hideClose != true}">


<button class="button listactions" type="submit" onClick="return closeAssessment();" id="close" name="close">${gs.getMessage('Close')}


</button>


</j:if>


</j:if>


</div>


</j2:if>


</td>


</tr>


</tfoot>


</j:if>


</table>


</div>


</j:if>


</g:ui_form>




<j2:if test="${gs.getProperty('com.snc.assessment.signature_authentication')=='false'}">


<j2:set var='jvar_signature_authentication' value='false' />


</j2:if>


<j2:if test="${gs.getProperty('com.snc.assessment.signature_authentication')=='true'}">


<j2:set var='jvar_signature_authentication' value='true' />


</j2:if>




<g:ui_form>


<div id='overlay'>


<div id="Authentication">


<g:ui_form>


<input type="hidden" name="jvar_signature_authentication" id="jvar_signature_authentication" value="$[jvar_signature_authentication]" />


<input type="hidden" id="approve_edit" name="approve_edit" value="false" />


<input type="hidden" id="approved" name="approved" value="false" />


<input type="hidden" id="sysapproval_id" name="sysapproval_id" value="${sysparm_approval_id}" />


<table id="authenticate_table">


<tr style="vertical-align: top;">


<td colspan="2">


<table id="authentication_header" style="width:100%; font-weight:bold; background-color:#eee;">


<tbody>


<tr>


<td style="vertical-align: middle; width:100%;">


Signature Authentication


</td>


<td style="text-align: right;">


<span>


<img id="popup_close_image" height="12" onclick="cancel()" style="vertical-align: top; cursor: pointer;" width="12" src="images/x.gifx" class="" />


</span>


</td>


</tr>


</tbody>


</table>


</td>


</tr>


<tr>


<td>${gs.getMessage('User name:')}</td>


<td>


<input type="text" name="userName" id="userName" readonly='true' />


</td>


</tr>


<tr>


<td>${gs.getMessage('Password')}:</td>


<td>


<input type="password" name="user_password" id="user_password" />


</td>


</tr>


<tr id="invalid_login_img" style="display:none">


<td colspan="2">


<table>


<tr>


<td>


<img src="./images/error.gifx" />


</td>


<td width="100%">


<SPAN id="invalid_login_text" style="font-weight:bold;">


${gs.getMessage('Password invalid')}


</SPAN>


</td>


</tr>


</table>


</td>


</tr>


<tr id="dialog_buttons">


<td colspan="2" align="center">


<button type="submit" onClick="checkLogin();return false;" id="ok" name="ok">${gs.getMessage('Ok')}</button>$[SP]


<button type="submit" onClick="cancel();return false;" id="quit" name="quit">${gs.getMessage('Cancel')}</button>


</td>


</tr>


</table>




</g:ui_form>


</div>


<!-- overlay -->


</div>


</g:ui_form>




<!-- emit g_user support -->


<g2:client_script type="user" />


<script>


document.title = "$[gs.getMessage('Take {0}', '${jvar_assessment_type}')]";


</script>


</j:jelly>


Try below code.



<?xml version="1.0" encoding="utf-8" ?>


<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">


<j:if test="${GlideMobileExtensions.getDeviceType() != 'doctype'}">


<g:requires name="scripts/lib/jquery_includes.js" />


</j:if>


<g:requires name="scripts/json2.jsx" />


<g:requires name="scripts/catalog.js" includes="true" />


<g:requires name="scripts/js_includes_assessment.js" includes="true" />




<j:set var="jvar_isComingFromSurveyCreator" value="${sysparm_isSurveyCreator}" />


<j:set var="jvar_isReaderView" value="${HTML:sysparm_reader_view}" />


<j:set var="jvar_hidepreview" value="no" />


<g:evaluate jelly="true" var="jvar_assessable_type">


var metricTypeId = '';


if(typeof jelly.sysparm_assessable_type !== 'undefined'){


metricTypeId = SNC.GlideHTMLSanitizer.sanitize(jelly.sysparm_assessable_type);


var metricTypeRegex = new RegExp("^\\w{32}$");


if(!metricTypeRegex.test(metricTypeId)){


metricTypeId = '';


}


}


metricTypeId;


</g:evaluate>


<g2:evaluate var="jvar_attachrole" expression="gs.getProperty('glide.attachment.role')" />


<g:evaluate var="jvar_hideClose" jelly="true">


var hideClose = jelly.sysparm_hide_close == 'true';


hideClose;


</g:evaluate>


<g:evaluate var="jvar_assessment_type">


var metricGR = new GlideRecord("asmt_metric_type");


metricGR.addQuery('sys_id', '${jvar_assessable_type}');


metricGR.query();


var evaluation_type = gs.getMessage('assessment');


if (metricGR.next())


evaluation_type = metricGR.evaluation_method.getChoiceValue().toLowerCase();


evaluation_type;


</g:evaluate>


<g:evaluate var="jvar_is_public_survey">


var isPublicSurvey = "false";


var metricGR = new GlideRecord("asmt_metric_type");


metricGR.addQuery('sys_id', '${jvar_assessable_type}');


metricGR.query();


if (metricGR.next() ${AND} metricGR.allow_public ${AND} '${jvar_assessment_type}' == 'survey')


isPublicSurvey = "true";


isPublicSurvey;


</g:evaluate>


<g:evaluate var="jvar_redirect_to_login">


var isUserLoggedIn = gs.isLoggedIn();


var redirectLogin = "false";


if('${jvar_is_public_survey}' == 'false' ${AND} !isUserLoggedIn)


redirectLogin = "true";


redirectLogin;


</g:evaluate>


<j:if test="${jvar_redirect_to_login == 'true'}">


<script>document.location.href = "assessment_redirect.do?sysparm_survey_url=${sysparm_this_url}";</script>


</j:if>


<g:evaluate jelly="true" var="jvar_assessable_sysid">


var asmtInstanceId = '';


if(typeof jelly.sysparm_assessable_sysid !== 'undefined'){


asmtInstanceId = SNC.GlideHTMLSanitizer.sanitize(jelly.sysparm_assessable_sysid);


var asmtInstanceRegex = new RegExp("^\\w+$");


if(!asmtInstanceRegex.test(asmtInstanceId)){


asmtInstanceId = 'invalidsysid';


}


}


if (asmtInstanceId == '') {


var instance = new SNC.AssessmentCreation().createOrGetAssessment('${jvar_assessable_type}', '', gs.getUserID());


} else if(asmtInstanceId =='invalidsysid'){


instance = 'invalidsysid';


}else{


var temp = new SNC.AssessmentCreation().checkAssessmentAllowed('${jvar_assessable_type}', asmtInstanceId, gs.getUserID());


if ('${sysparm_isSurveyCreator}' == 'yes' || ('${jvar_isReaderView}' == 'true' ${AND} gs.hasRole('survey_admin')))


var instance = asmtInstanceId;


else if (temp != "" ${AND} temp != "wip")


var instance = temp;


else


var instance = asmtInstanceId;


}


if (instance.substring(0, 6) == 'notyet') {


var when = instance.substring(6);


instance = 'notyet';


}


instance;


</g:evaluate>




<g:requires name="styles/assessment.css" />


<j:if test="${jvar_assessable_sysid == 'invalidsysid'}">


<g:evaluate>


var msg = gs.getMessage('The assessable record is invalid');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${jvar_assessable_sysid == 'completed'}">


<g:evaluate>


var msg = gs.getMessage('You have completed this {0}', '${jvar_assessment_type}');


gs.addInfoMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${jvar_assessable_sysid == 'canceled'}">


<g:evaluate>


var msg = gs.getMessage('This {0} has been canceled', '${jvar_assessment_type}');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>



<g:evaluate var="jvar_inst_due_date" jelly="true">


var inst_due_date = jelly.sysparm_inst_due_date;


inst_due_date;


</g:evaluate>




<j:if test="${jvar_assessable_sysid == 'save'}">


<j:if test="${jvar_inst_due_date == ''}">


<g:evaluate>


var msg = gs.getMessage('Your responses have been saved');


gs.addInfoMessage(msg);


</g:evaluate>


</j:if>


<j:if test="${jvar_inst_due_date != ''}">


<g:evaluate>


var msgArr = [];


msgArr.push('${jvar_assessment_type}');


msgArr.push('${jvar_inst_due_date}');


var msg = gs.getMessage('Your responses have been saved. You can complete this {0} before {1}', msgArr);


gs.addInfoMessage(msg);


</g:evaluate>


</j:if>


</j:if>




<j:if test="${jvar_assessable_sysid == 'cancel'}">


<j:set var="jvar_isUserLoggedIn" value="${isUserLoggedIn}" />


<j:if test="${jvar_inst_due_date == '' || !jvar_isUserLoggedIn}">


<g:evaluate>


var msg = gs.getMessage('Your responses have not been saved');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>


<j:if test="${jvar_inst_due_date != '' &amp;&amp; jvar_isUserLoggedIn}">


<g:evaluate>


var msgArr = [];


msgArr.push('${jvar_assessment_type}');


msgArr.push('${jvar_inst_due_date}');


var msg = gs.getMessage('Your responses have not been saved. You can complete this {0} before {1}', msgArr);


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>


</j:if>




<j:if test="${jvar_assessable_sysid == 'close'}">


<g:evaluate>


var msg = gs.getMessage('Preview has been closed');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${jvar_assessable_sysid == 'notyet'}">


<g:evaluate>


var msg = gs.getMessage('You have recently completed this Survey, it will be available in the future');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${(jvar_assessable_sysid == 'not_authorized')}">


<g:evaluate>


var msg = gs.getMessage('You are not authorized to take this {0}', '${jvar_assessment_type}');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${jvar_assessable_sysid == 'not_available'}">


<g:evaluate>


var msg = gs.getMessage('This {0} is not currently available, check back later', '${jvar_assessment_type}');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${jvar_assessable_sysid == 'invalidtype'}">


<g:evaluate>


var msg = gs.getMessage('There was an unexpected failure with this assessment, invalid type provided');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${jvar_assessable_sysid == 'inactive'}">


<g:evaluate>


var msg = gs.getMessage('This {0} is no longer active', '${jvar_assessment_type}');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${jvar_assessable_sysid == 'draft_state'}">


<g:evaluate>


var msg = gs.getMessage('This {0} has not yet been published', '${jvar_assessment_type}');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${jvar_assessable_sysid == 'isscheduled'}">


<g:evaluate>


var msg = gs.getMessage('An incorrect assessment or survey was provided - on demand expected');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${jvar_assessable_sysid == 'notsurvey'}">


<g:evaluate>


var msg = gs.getMessage('An incorrect assessment was provided - survey expected');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${jvar_assessable_sysid == 'nousers'}">


<g:evaluate>


var msg = gs.getMessage('Unable to generate assessment, no user was provided');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${jvar_assessable_sysid == 'nosources'}">


<g:evaluate>


var msg = gs.getMessage('Unable to generate assessment, no source was provided');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>




<j:if test="${jvar_assessable_sysid.length() == 32}">


<g:evaluate var="jvar_preview">


var isPreview = false;


var gr = new GlideRecord("asmt_assessment_instance");


gr.get(instance);


if (gr.isValidRecord())


isPreview = gr.getValue("preview");


</g:evaluate>


<g:evaluate var="jvar_task_record_url">


var gr = new GlideRecord("asmt_assessment_instance");


gr.get(instance);


var task_record = "";


var task_table = "";


var task_record_url = "";


if(gr.trigger_table){


var tr = new GlideRecord(gr.trigger_table);


if(tr.get(gr.trigger_id)){


task_record_url = gr.trigger_table + ".do?sys_id=" + gr.trigger_id;


task_table = tr.getClassDisplayValue();


task_record = tr.getDisplayValue();


}


}


task_record_url;


</g:evaluate>


<g2:evaluate var="jvar_can_write">


var gr = new GlideRecord('asmt_assessment_instance');


gr.get(instance);


gr.canWrite();


</g2:evaluate>


</j:if>


<j:if test="${jvar_assessable_sysid.length() != 32}">


<g:evaluate var="jvar_preview">


var isPreview = false;


</g:evaluate>


<g:evaluate var="jvar_task_record_url">


var task_record_url = "";


var task_record = "";


var task_table="";


</g:evaluate>


</j:if>


<j:if test="${isPreview == true}">


<g:evaluate var="jvar_hidepreview">


if ('${sysparm_isSurveyCreator}' == 'yes') {


value = 'no';


} else {


var metricGR = new GlideRecord("asmt_metric_type");


metricGR.addQuery('sys_id', '${jvar_assessable_type}');


metricGR.query();


if (metricGR.next())


metricGR.deleteRecord();


value = "yes";


}


</g:evaluate>




<j:if test="${jvar_isComingFromSurveyCreator != 'yes'}">


<g:evaluate>


var msg = gs.getMessage('This preview instance has not been saved.');


gs.addErrorMessage(msg);


</g:evaluate>


</j:if>


</j:if>




<g:ui_form>


<input type="hidden" id="type_sysID" name="type_sysID" value="${jvar_assessable_type}" />


<input type="hidden" id="instance_sysID" name="instance_sysID" value="${jvar_assessable_sysid}" />


<input type="hidden" id="selection_result" name="selection_result" value="" />


<input type="hidden" id="hiddenQuestions" name="hiddenQuestions" value="" />


<input type="hidden" id="attachmentQuestions" name="attachmentQuestions" value="" />


<input name="sys_target" id="sys_target" type="HIDDEN" value="asmt_assessment_instance" />


<input name="sys_uniqueValue" id="sys_uniqueValue" type="HIDDEN" value="${jvar_assessable_sysid}" />


<j:if test="${jvar_hidepreview == 'no'}">


<div class="assessment">


<g2:evaluate var="jvar_type" expression="var typeGR = '';


var instanceGR = new GlideRecord('asmt_assessment_instance');


instanceGR.addQuery('sys_id', '${jvar_assessable_sysid}');


instanceGR.query();


if (instanceGR.next()) {


typeGR = new GlideRecord('asmt_metric_type');


typeGR.addQuery('sys_id', instanceGR.metric_type);


typeGR.query();


}" />


<j2:if test="$[typeof typeGR == 'object']">


<j2:if test="$[typeGR.next()]">


<div class="navbar navbar-default" role="navigation">


<h1 class="navbar-title">$[typeGR.name]</h1>


<j:if test="${isPreview != true}">


<j:if test="${ jvar_isReaderView != 'true'}">


<div class="nav navbar-right">


<g:evaluate var="jvar_no_attachment">


var gr = new GlideRecord('asmt_assessment_instance');


gr.getED().getBooleanAttribute('no_attachment');


</g:evaluate>


<j:if test="${!jvar_no_attachment}">


<j2:if test="$[jvar_can_write == 'true']">


<j2:if test="$[jvar_session.hasRole(jvar_attachrole)]">


<j2:if test="$[GlideMobileExtensions.getDeviceType() == 'doctype']">


<button type="button" onclick="saveAttachment('asmt_assessment_instance', '${jvar_assessable_sysid}');" id="header_add_attachment"


title="${gs.getMessage('Manage attachments')}"


aria-label="${gs.getMessage('Manage attachments')}"


class="btn btn-icon icon-paperclip navbar-btn" />


</j2:if>


<j2:if test="$[GlideMobileExtensions.getDeviceType() != 'doctype']">


<a onclick="saveAttachment('asmt_assessment_instance', '${jvar_assessable_sysid}');" id="header_add_attachment">


<img src="images/icons/attachment.gifx" alt="${gs.getMessage('Attachments...')}"


class="i16x16" title="${gs.getMessage('Attachments...')}" />


</a>


</j2:if>


</j2:if>


</j2:if>


</j:if>


<button class="btn btn-primary navbar-btn" type="submit" onClick="return submitAssessment();" id="submit" name="submit">${gs.getMessage('Submit')}</button>


<j:if test="${isUserLoggedIn}">


<button class="btn btn-default navbar-btn" type="submit" onClick="return saveAssessment();" id="save" name="save">${gs.getMessage('Save')}</button>


</j:if>


<button class="btn btn-default navbar-btn" type="submit" onClick="return cancelAssessment();" id="cancel" name="cancel">${gs.getMessage('Cancel')}</button>


</div>


<div style="clear: both;"></div>


</j:if>


</j:if>


</div>


<g2:attachment_list table='asmt_assessment_instance' sys_id='${jvar_assessable_sysid}'>


<j2:set var="jvar_attachment_url"


value="javascript:saveAttachment('asmt_assessment_instance', '${jvar_assessable_sysid}');" />


<g:inline template="attachment_list_body.xml" />


</g2:attachment_list>


<j:if test="${jvar_task_record_url != ''}">


<input type="hidden" value="${jvar_task_record_url}" name="task_record_url" id="task_record_url"/>


<g2:evaluate>


var msgArr = [];


msgArr.push('${jvar_assessment_type}');


msgArr.push('${task_table}');


</g2:evaluate>


<j2:if test="$[GlideMobileExtensions.getDeviceType() == 'doctype']">


<div class="notification notification-info">


$[gs.getMessage('This {0} is in regards to {1}: ', msgArr)]


<a onClick="openTaskOverlay(event)" class="related-task-link">${gs.getMessage('${task_record}')}</a>


<button data-dismiss="alert" class="btn btn-icon close icon-cross">


<span class="sr-only">Close</span>


</button>


</div>


</j2:if>


<j2:if test="$[GlideMobileExtensions.getDeviceType() != 'doctype']">


<div id="output_messages_container" class="outputmsg_container">


<img class="outputmsg_close" src="images/x.gifx" onclick="closeTaskRecoreMsg()" alt="${gs.getMessage('Close Messages')}" />


<div class="outputmsg outputmsg_info">


<img class="outputmsg_image" src="images/outputmsg_info_24.gifx" alt="${gs.getMessage('Informational Message')}" title="${gs.getMessage('Informational Message')}" />


<div class="outputmsg_text">


$[gs.getMessage('This {0} is in regards to {1}: ', msgArr)]


<a onClick="openTaskOverlay(event)" class="related-task-link">${gs.getMessage('${task_record}')}</a>


</div>


</div>


</div>


</j2:if>


</j:if>


<div>


<!-- end_note may contain HTML formatting -->


<g2:no_escape>$[NS:typeGR.introduction]</g2:no_escape>


</div>


</j2:if>


</j2:if>


<table class="wrap">


<tbody>


<g2:evaluate var="jvar_type"  


expression="var typeGR='';  


var instanceGR = new GlideRecord('asmt_assessment_instance');  


instanceGR.addQuery('sys_id', '${jvar_assessable_sysid}');  


instanceGR.query();  


if (instanceGR.next()) {  


typeGR = new GlideRecord('asmt_metric_type');  


typeGR.addQuery('sys_id', instanceGR.metric_type);  


typeGR.query();  


}


" />  


<j2:if test="$[typeof typeGR == 'object']">      


<j2:if test="$[typeGR.next()]">      


<div style="background-color: #767676;margin-top: 2px;font-weight: bold;padding: 2px 6px 2px 6px;color: #ffffff;">      


<img src="images/context.gifx"></img>      


$[typeGR.name]  


</div>  




<!-- end_note may contain HTML formatting -->  


 


<g2:no_escape>$[NS:typeGR.introduction]</g2:no_escape>  


<div align="center" style="width:100%; border:1px solder red;">  


<div align="left" style="font-weight: bold;padding-bottom:5px; margin-bottom:0px;">Assessable Record Detail: </div>  


<div align="left">  


<g2:evaluate var="jvar_record"  


expression="var recordGR='';    


gs.log(instanceGR.trigger_table + ' ' + instanceGR.trigger_id);  


var recordGR = new GlideRecord(instanceGR.trigger_table);  


recordGR.addQuery('sys_id', instanceGR.trigger_id);  


recordGR.query();        




" />  


 


<j2:if test="$[typeof recordGR == 'object']">  


 


<j2:if test="$[recordGR.next()]">  


 


<div style="margin-bottom:0px;"><b>Incident number:</b>  


$[recordGR.number]      


</div>  


<div style="margin-bottom:0px;"><b>Description:</b>  


$[recordGR.short_description]  


</div>


</j2:if>


</j2:if>  


</div>  


</div>  


</j2:if>      


</j2:if>  


<g2:com.snc.assessment_core_take assessment="${jvar_assessable_sysid}" read="${jvar_isReaderView}" />


</tbody>


<j:if test="${jvar_assessable_sysid.length() == 32}">


<g2:evaluate>


var instanceGR = new GlideRecord('asmt_assessment_instance');


instanceGR.addQuery('sys_id', '${jvar_assessable_sysid}');


instanceGR.query();


var signatureGR = null;


if (instanceGR.next()) {


if (!instanceGR.signature.nil()) {


signatureGR = new GlideRecord('asmt_signature');


signatureGR.get(instanceGR.signature);


}


}


</g2:evaluate>




<tfoot>


<tr>


<td>


<j2:if test="$[ signatureGR != null &amp;&amp; isUserLoggedIn]">


<input type="hidden" name="jvar_signature_type" id="jvar_signature_type" value="$[signatureGR.type]" />


<div class="signature">


<div class="assertion">


<j2:if test="$[ signatureGR.type == 'checkbox' ]">


<div id="checkbox">


<j:if test="${jvar_isReaderView == 'true'}">


<j2:if test="$[ instanceGR.signature_result == 'checked' &amp;&amp; instanceGR.state == 'complete' ]">


<input type='checkbox' id='signature_result' name='signature_result' value='checked' checked='true' readonly='readonly' disabled="" />


</j2:if>


<j2:if test="$[ instanceGR.signature_result != 'checked' || instanceGR.state != 'complete']">


<input type='checkbox' id='signature_result' name='signature_result' value='' readonly='readonly' disabled="" />


</j2:if>


</j:if>


<j:if test="${jvar_isReaderView != 'true'}">


<input type='checkbox' id='signature_result' name='signature_result' value='checked' />


</j:if>


<g2:no_escape>$[NS:signatureGR.assertion]</g2:no_escape>


</div>


</j2:if>




<j2:if test="$[ signatureGR.type == 'full_name' ]">


<div id="type_name">


<g2:no_escape>$[NS:signatureGR.assertion]</g2:no_escape>


<input type='text' id='signature_result' name='signature_result' size='35' readonly='true' />


</div>


</j2:if>




<j2:if test="$[ signatureGR.type == 'assertion_only' ]">


<div id="no_assertion">


<g2:no_escape>$[NS:signatureGR.assertion]</g2:no_escape>


</div>


</j2:if>


</div>




<div class="assessmentButtonRow">


<j:if test="${isPreview != true}">


<j:if test="${jvar_isReaderView != 'true'}">


<button class="btn btn-primary" type="submit" onClick="return submitAssessment();" id="submit" name="submit">${gs.getMessage('Submit')}


</button>


<button class="btn btn-default" type="submit" onClick="return saveAssessment();" id="save" name="save">${gs.getMessage('Save')}


</button>


<button class="btn btn-default" type="submit" onClick="return cancelAssessment();" id="cancel" name="cancel">${gs.getMessage('Cancel')}


</button>


</j:if>


</j:if>


<j:if test="${isPreview == true}">


<j:if test="${hideClose != true}">


<button class="button listactions" type="submit" onClick="return closeAssessment();" id="close" name="close">${gs.getMessage('Close')}


</button>


</j:if>


</j:if>


</div>


</div>


</j2:if>




<j2:if test="$[ signatureGR == null ]">


<div class="assessmentButtonRow">


<j:if test="${isPreview != true}">


<j:if test="${ jvar_isReaderView != 'true'}">


<button class="btn btn-primary" type="submit" onClick="return submitAssessment();" id="submit" name="submit">${gs.getMessage('Submit')}


</button>


<j:if test="${isUserLoggedIn}">


<button class="btn btn-default" type="submit" onClick="return saveAssessment();" id="save" name="save">${gs.getMessage('Save')}


</button>


</j:if>


<button class="btn btn-default" type="submit" onClick="return cancelAssessment();" id="cancel" name="cancel">${gs.getMessage('Cancel')}


</button>


</j:if>


</j:if>




<j:if test="${isPreview == true}">


<j:if test="${hideClose != true}">


<button class="button listactions" type="submit" onClick="return closeAssessment();" id="close" name="close">${gs.getMessage('Close')}


</button>


</j:if>


</j:if>


</div>


</j2:if>


</td>


</tr>


</tfoot>


</j:if>


</table>


</div>


</j:if>


</g:ui_form>




<j2:if test="${gs.getProperty('com.snc.assessment.signature_authentication')=='false'}">


<j2:set var='jvar_signature_authentication' value='false' />


</j2:if>


<j2:if test="${gs.getProperty('com.snc.assessment.signature_authentication')=='true'}">


<j2:set var='jvar_signature_authentication' value='true' />


</j2:if>




<g:ui_form>


<div id='overlay'>


<div id="Authentication">


<g:ui_form>


<input type="hidden" name="jvar_signature_authentication" id="jvar_signature_authentication" value="$[jvar_signature_authentication]" />


<input type="hidden" id="approve_edit" name="approve_edit" value="false" />


<input type="hidden" id="approved" name="approved" value="false" />


<input type="hidden" id="sysapproval_id" name="sysapproval_id" value="${sysparm_approval_id}" />


<table id="authenticate_table">


<tr style="vertical-align: top;">


<td colspan="2">


<table id="authentication_header" style="width:100%; font-weight:bold; background-color:#eee;">


<tbody>


<tr>


<td style="vertical-align: middle; width:100%;">


Signature Authentication


</td>


<td style="text-align: right;">


<span>


<img id="popup_close_image" height="12" onclick="cancel()" style="vertical-align: top; cursor: pointer;" width="12" src="images/x.gifx" class="" />


</span>


</td>


</tr>


</tbody>


</table>


</td>


</tr>


<tr>


<td>${gs.getMessage('User name:')}</td>


<td>


<input type="text" name="userName" id="userName" readonly='true' />


</td>


</tr>


<tr>


<td>${gs.getMessage('Password')}:</td>


<td>


<input type="password" name="user_password" id="user_password" />


</td>


</tr>


<tr id="invalid_login_img" style="display:none">


<td colspan="2">


<table>


<tr>


<td>


<img src="./images/error.gifx" />


</td>


<td width="100%">


<SPAN id="invalid_login_text" style="font-weight:bold;">


${gs.getMessage('Password invalid')}


</SPAN>


</td>


</tr>


</table>


</td>


</tr>


<tr id="dialog_buttons">


<td colspan="2" align="center">


<button type="submit" onClick="checkLogin();return false;" id="ok" name="ok">${gs.getMessage('Ok')}</button>$[SP]


<button type="submit" onClick="cancel();return false;" id="quit" name="quit">${gs.getMessage('Cancel')}</button>


</td>


</tr>


</table>




</g:ui_form>


</div>


<!-- overlay -->


</div>


</g:ui_form>




<!-- emit g_user support -->


<g2:client_script type="user" />


<script>


document.title = "$[gs.getMessage('Take {0}', '${jvar_assessment_type}')]";


</script>


</j:jelly>



Please mark this response as correct or helpful if it assisted you with your question.

Hi Sanjiv,



        I think the solution that you provided above is to take care of the first form   ..In-order to change the below we should be modifying the assessment_list? to display


survey.PNG