Hola! We need to make certain fields required when 2 conditions are met. I've never worked with the $args, and cannot find an example of it being used in a compound statement. I tried building one, but am getting an error. Would appreciate any input. Thanks!
Desired Outcome: A change order field (on chg table) is only required when change status = pending change manager AND change risk level < 4. The field is located on one of the Tabs.
Idea: Use $args IF/ELSE statement on xx_candp_tab.htmpl form (tried with and without the parenthesis)
without parenthesis
<PDM_IF "$args.status" == "Pending Change Manager" and "$args.risk.enum" < "4">
<PDM_MACRO name=dtlDate hdr="Readiness Review Date" attr="zRReview_date" make_required="yes">
<PDM_ELSE>
<PDM_MACRO name=dtlDate hdr="Readiness Review Date" attr="zRReview_date">
</PDM_IF>
with parenthesis
<PDM_IF ("$args.status" == "Pending Change Manager" and "$args.risk.enum" < "4")>
<PDM_MACRO name=dtlDate hdr="Readiness Review Date" attr="zRReview_date" make_required="yes">
<PDM_ELSE>
<PDM_MACRO name=dtlDate hdr="Readiness Review Date" attr="zRReview_date">
</PDM_IF>
both variations receive same error
AHD04407:CA Service Desk Manager html generation error. Could not find or process 'detail_chg_ro.htmpl'.
AHD04727:Unclosed PDM_IF at xx_candp_tab.htmpl[84]