Need to make a drop down mandatory for a one requestor

Document ID : KB000013330
Last Modified Date : 14/02/2018
Show Technical Document Details

In CA service Desk Manager, we have multiple ways to make a specific field mandatory but the best and easiest way to customize the requirement is to use the HTMPL files. This functionality can be reverted back in a fly without major down time for any given environment. 


How to make a drop down field mandatory based on a specific user login?

CA Service Desk Manager 12.9CA Service Desk Manager 14.1

The below code is the simple way of making an attribute mandatory / non-mandatory at web interface level only (sample code provided for understanding). 


<PDM_IF "$args.customer" == "A907CDA7B62BF2428E7CF2B25E95C059"> 

<PDM_MACRO name=dtlDropdown hdr="DROPDOWN" attr=DROPDOWN make_required=yes> 


<PDM_MACRO name=dtlDropdown hdr="DROPDOWN" attr=DROPDOWN> 


Additional Information:



1. "A907CDA7B62BF2428E7CF2B25E95C059" is the UUID for any given user

2. "make_required = yes" will enable the HTMPL code to ensure that there is a value provided for a selected field and would not be able to submit until a value is provided.