AnsweredAssumed Answered

Button to flip Request to Incident and vice versa - Not Working in Chrome

Question asked by J_W on Jun 16, 2016
Latest reply on Dec 30, 2016 by JonathanM

SDM 14.1.02

Need to allow analysts to change a Request to Incident and vice versa as customers currently create Requests initially and then the decision of which type is made at Tier 1.

The following legacy code works in IE and Firefox but not Chrome.

IE:  version 11

Firefox ESR 45

Chrome: Version 51

/////////////////////////////////////////////////////////////

detail_cr.htmpl

In the existing button row:

 

 

<PDM_IF "$args.id" != "0" && "$prop.form_name_3" == "edit" && "$args.status" != "CL"&& "$args.status" != "CAN">

<PDM_MACRO name=button Caption="Change To Incident" Func="document.main_form.elements('SET.type').value='I'; detailSave();" hotkey_name="Change To Incident(I)" ID="ITIL_REQUEST">

</PDM_IF>

...and added the necessary hidden element to capture the existing type:

 

 

<PDM_MACRO name=dtlStart scroll=true>
<PDM_IF "$prop.form_name_3" == "edit">
</script>
.....
<input type="hidden" name="SET.type" value="$args.type">
<script type="text/javascript">

 

//////////////////////////////////////////////////

What should I look for that Chrome handles differently?

 

thanks,

J.W.

Outcomes