Expand my Community achievements bar.

SOLVED

Enable if and applicable If

Avatar

Level 1

Hi Everyone
Greeting for the day!

 

Can someone kindly help me on 
1.EnableIf 

2.ApplicableIf

May i know its functionalities and how it has to be implemented.
I could able to get documents only about AccessibleIf and VisibleIf.

Thanks in  Advance!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @vaishbharathi,

 

EnabledIf is used in the input forms on container level to enable or disable the input fields contained within based on a dynamic condition. Disabling a control prevents it from being edited. The following example illustrates the enabling of controls from the value of the “Gender” field:

<container type="enabledGroup" enabledIf="@gender=1">
  …
</container>
<container type="enabledGroup" enabledIf="@gender=2">
  …
</container>

More details about form controls can be found here: https://experienceleague.adobe.com/docs/campaign-classic/using/configuring-campaign-classic/input-fo...

 

ApplicableIf is mostly used in data schemas and it specifies a dynamic condition whether an attribute applies to the schema or not.

e.g. 

applicableIf="HasPackage('nms:coreInteraction')"

will apply the particular attribute to the schema only if the instance has the coreInteraction package installed. More details can be found here: https://experienceleague.adobe.com/docs/campaign-classic/using/configuring-campaign-classic/schema-r...

 

BR,

Ishan

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

Hi @vaishbharathi,

 

EnabledIf is used in the input forms on container level to enable or disable the input fields contained within based on a dynamic condition. Disabling a control prevents it from being edited. The following example illustrates the enabling of controls from the value of the “Gender” field:

<container type="enabledGroup" enabledIf="@gender=1">
  …
</container>
<container type="enabledGroup" enabledIf="@gender=2">
  …
</container>

More details about form controls can be found here: https://experienceleague.adobe.com/docs/campaign-classic/using/configuring-campaign-classic/input-fo...

 

ApplicableIf is mostly used in data schemas and it specifies a dynamic condition whether an attribute applies to the schema or not.

e.g. 

applicableIf="HasPackage('nms:coreInteraction')"

will apply the particular attribute to the schema only if the instance has the coreInteraction package installed. More details can be found here: https://experienceleague.adobe.com/docs/campaign-classic/using/configuring-campaign-classic/schema-r...

 

BR,

Ishan

Avatar

Level 1

Hi @isahore  and Everyone

 

I tried executing enableIf  and applicableIf.
But couldn't get the result. Can someone help me with providing the expected result of enableIf and applicableIf.

vaishbharathi_0-1710741903243.png

 

vaishbharathi_1-1710741914216.png

Kindly correct me if I am wrong

Avatar

Community Advisor

Hi @vaishbharathi,

Can you elaborate your use case what you are trying to achieve?

BR,

Ishan