0
Shelved

Can we create a classification specific required fields in cloud?

Adam Asar 6 months ago in Digital Asset Management updated by petra.tant 5 months ago 2

We are looking for a site-wide solution to manage required fields in the classification level.


The instructions from Aprimo and the code we have developed (both are below) are not east to maintain when there is a change in the required fields. 

Aprimo recommendation

Validation in Administrator Guide > Configuration areas > Fields > Creating and modifying field definitions (https://yourenvironment.dam.aprimo.com/Assets/WebHelp/ADAMHelp.htm#Admin%20Guide/Fields/Create%20new%20Field.htm?Highlight=validation)

Our current solution in place

<ref:record fieldName="DAMClassifications" store="@selectedClassifications"/>

<ref:classification search="identifier='Dielines'" out="id" store="@classification1TriggeringConditionalRequirement"/>
<ref:classification search="identifier='Label Graphics'" out="id" store="@classification2TriggeringConditionalRequirement"/>
<ref:classification search="identifier='Lifestyle Label Graphics Restricted(BA)'" out="id" store="@classification3TriggeringConditionalRequirement"/>

<ref:text out="@classification1TriggeringConditionalRequirement" store="@classification1TriggeringConditionalRequirement"/>
<ref:text out="@classification2TriggeringConditionalRequirement" store="@classification2TriggeringConditionalRequirement"/>
<ref:text out="@classification3TriggeringConditionalRequirement" store="@classification3TriggeringConditionalRequirement"/>

<ref:compare value1="TEST1" value2="TEST2" store="@fieldIsNotRequired"/>

<ref:foreach in="@selectedClassifications" storeitem="@selectedClassification" join="|">

<ref:text out="@selectedClassification" store="@selectedClassification"/>
<ref:compare onVariable="IsZero(@fieldIsNotRequired)" value1="@selectedClassification" value2="@classification1TriggeringConditionalRequirement" store="@fieldIsNotRequired"/>

<ref:compare onVariable="IsZero(@fieldIsNotRequired)" value1="@selectedClassification" value2="@classification2TriggeringConditionalRequirement" store="@fieldIsNotRequired"/>
<ref:compare onVariable="IsZero(@fieldIsNotRequired)" value1="@selectedClassification" value2="@classification3TriggeringConditionalRequirement" store="@fieldIsNotRequired"/>
</ref:foreach>
<ref:record field="current" out="value" store="@fieldValue" />
<ref:compare value1="False" value2="@fieldIsNotRequired" onVariable="IsEmpty(@fieldValue)" />
<ref:compare value1="@fieldIsNotRequired" value2="@fieldIsNotRequired" onVariable="IsNotEmpty(@fieldValue)"/>

Fields / Attributes
Shelved

We've understood from this question that you are asking for conditional mandatory fields. If this is not correct, please let us know. This is a valid request, but we will not get to this any time soon.