All Collections
Plugin Questions
Custom Components
(Plugin) External Display Conditions
(Plugin) External Display Conditions

This article provides guidance on connecting the custom display conditions pop-up window to the Plugin.

Valeriia avatar
Written by Valeriia
Updated over a week ago

With the "Display Conditions" parameter, you have the ability to change the content of emails displayed to recipients, depending on whether the specified condition on your end is met or not.


For additional details on "Display Conditions," please refer to our article.

In case you want to display your own component with external conditions in the pop-up window, you need to set the "ExternalDisplayConditionsPopup" parameter when you initialize the Plugin:

conditionsEnabled: true,
customConditionsEnabled: false,
conditionsTooltip: window.ExternalDisplayConditionsPopup.getConditionsTooltip,
conditionCategories: [
{
type: 'EXTERNAL',
category:'Complex conditions',
openExternalDisplayConditionsDialog: window.ExternalDisplayConditionsPopup.openExternalDisplayConditionsDialog
}
]

Please find a code example here to see how it works.

As a result, your customers can easily utilize pre-defined conditions through the pop-up window.

If you wish to have the "Display Conditions" button located alongside the buttons "Copy", "Move", and "Delete", you can achieve this by passing the "useContextActionsInsteadOfSettingsTab" parameter during initialization:

conditionCategories: [
{
type: 'EXTERNAL',
category:'Complex conditions',
openExternalDisplayConditionsDialog: window.ExternalDisplayConditionsPopup.openExternalDisplayConditionsDialog,
useContextActionsInsteadOfSettingsTab: true
}
]

Result:



Thank you for taking the time to read our articles. We hope you will find this information helpful.


If you have any additional questions, please email us at support@stripo.email.

We would be glad to talk with you.


Did this answer your question?