I have tried few ways to set the default "New status" dropdown field on update status page (request_status_change.htmpl) to "Resolved" but to no luck, could anyone please point me in the right direction to achieve this requirement?
They use different forms to you must just apply in the necessary one or use pdm_if statement
The following document might be useful
How can I have the Change Status set to 'Open' by default?
Paul...The customization steps from CA tech doc is relevant for setting new ticket status to desired status but in my requirement it is an existing ticket and when Analysts right-click on requests list > Update Status > New Status field should defaults to 'Resolved'.
I have already tried the following syntax besides clearing the browser cache but still defaults to same status as in Current Status field.
<PDM_MACRO name=dtlDropdown hdr="New Status" attr=status default="Resolved" evt="onBlur=\\\"detailSyncEditForms(this);\\\" onChange=\\\"make_desc_required(this)\\\"" factory=crs_cr initial="!default_trans_code!" lookup="no">
<PDM_MACRO name=dtlDropdown hdr="New Status" attr=status default="Resolved" evt="onBlur=\\\"detailSyncEditForms(this);\\\" onChange=\\\"make_desc_required(this)\\\"" factory=crs_cr initial="!def_code!" lookup="no">
Have you tried setting initial="RE" within the PDM_MACRO code?
Paul...Is it possible to apply this change only on Update Status form?
Just realized that we have customized Log Comment, Solution and Research activity forms to include the same Old and New Status drop down fields. With initial="RE" change, the New Status field is now set to Resolved by default on all forms.
Probably has to do with the 'factory=crs_cr initial' code.
I am not sure how to update the factory code. Maybe someone else has an idea.
factory is crs_cr no need for any change there.
!def_code! and/or !def_trans_code! represent the status that is set as default in your status table or in your transition from the current status
Just overwrite the initial with your own in the respective section depending if you use transition or not
my 2 cents
Retrieving data ...