Enable if and applicable If | Community
Skip to main content
New Participant
March 12, 2024
Solved

Enable if and applicable If

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
isahore
isahoreAccepted solution
New Participant
March 12, 2024

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-forms/form-structure.html?lang=en#non-editable-fields

 

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-reference/elements-attributes/value.html?lang=en#attributes-16

 

BR,

Ishan

4 replies

isahore
isahoreAccepted solution
New Participant
March 12, 2024

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-forms/form-structure.html?lang=en#non-editable-fields

 

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-reference/elements-attributes/value.html?lang=en#attributes-16

 

BR,

Ishan

Translate
New Participant
March 13, 2024

Thanks a lot @isahore !

It was really helpful

Translate