Hi Kunal,
You may want to check a similar code which you can make use in regards to your requirement
<PDM_IF "$args.resolution_code" == "<id>">
<PDM_MACRO name=dtlTextbox hdr="External System Ticket" attr=external_system_ticket keeptags=yes make_required="yes">
<PDM_ELSE>
<PDM_MACRO name=dtlTextbox hdr="External System Ticket" attr=external_system_ticket keeptags=yes>
</PDM_IF>
If not then you may want to write a spel code. Below s a sample I noted on other communities
Link: https://communities.ca.com/thread/241753456
Hope this helps you to get going.
Regards,
Maheshwar Kusuma