AnsweredAssumed Answered

Hide priority in Issue creation form in the employee UI

Question asked by hassan.lagroubi on Jan 24, 2018
Latest reply on Feb 7, 2018 by hassan.lagroubi

Hello,

I added issue creation in employee UI, I need now to hide priority in the issue form, I deleted bellow codes from detail_iss.htmpl file but no way:

 

 

<PDM_MACRO name=dtlStartRow>
<PDM_IF 0>
Use prepare_self_serve_priority_dropdown() to determine the sym and enum of the
user's default priority based on the web.cfg, a data partition Defaults setting
or the priority of a saved ticket.
Also build the prio_string, a list of priorities base on the web.cfg.
Feed these values into a detailDropdown().

</PDM_IF>
<PDM_IF "$prop.guest_user" == 1>
prepare_self_serve_priority_dropdown ("$prop.AnonymousPrio", "$args.priority", "$args.id", "$args.priority.sym");

<PDM_ELSE>
prepare_self_serve_priority_dropdown ("$prop.CstPrio", "$args.priority", "$args.id", "$args.priority.sym");

</PDM_IF>
var def_prio_sym = "";
var def_prio_enum = "";
var prio_string = "";
if ( typeof ahdtop != "object" || typeof ahdtop.default_webcfg_prio_sym != "string" ||
typeof ahdtop.default_webcfg_prio_enum != "string" || typeof ahdtop.self_serve_priority_string != "string" )
{
// Should only get in here if there was a problem with prepare_self_serve_priority_dropdown().
// In that case, just go with the default priority.
def_prio_sym = "$args.priority.sym";
def_prio_enum = "$args.priority";
prio_string = def_prio_sym + "@,@" + "$args.priority";
}
else
{
// These values calculated by prepare_self_serve_priority_dropdown().
def_prio_sym = ahdtop.default_webcfg_prio_sym;
def_prio_enum = ahdtop.default_webcfg_prio_enum;
prio_string = ahdtop.self_serve_priority_string;
}

detailDropdown("Priority", "priority","pri", 1, 20,
true, "$args.priority.persistent_id", def_prio_enum,
"no", "$args.priority.COMMON_NAME_ATTR", def_prio_sym,
"", "", "no", "", "", "",
prio_string );


<PDM_IF "$args.category.ss_include" != "1" && "$args.id" != "0" && "$args.category" != "">
<PDM_MACRO name=dtlReadonly hdr="Categorie" attr="category">
<PDM_ELSE>
<PDM_MACRO name=dtlHier hdr="Categorie" attr="category" autofill=yes common_name="ss_sym" evt="onChange=\\\"emp_change_category_func('iss')\\\"" factory=isscat_ss size=30>
</PDM_IF>

 

Thanks for your help.

Outcomes