Give Feedback

Add a "contains"/"does not contain" in dynamic content logic

Add a "field contains"/"field does not contain" rule to the dynamic content editor.

8 votes
Sign in
Sign in with: Facebook Google
Signed in as (Sign out)

We’ll send you updates on this idea

Bryan shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →


Sign in
Sign in with: Facebook Google
Signed in as (Sign out)
  • Michael Anderson commented  ·   ·  Flag as inappropriate

    Another use case is the insertion of tracking links into order shipped notifications. For example, something like this would be ideal:

    {if "%%#ffill_shipmethod%%" contains "FedEx"}
    ---render FedEx link here
    {elseif "%%#ffill_shipmethod%%" contains "UPS"}
    --render UPS link here

    Without the contains expression, we're going to be forced to create an elseif block for every shipping method that UPS and FedEx have.


  • Miranda commented  ·   ·  Flag as inappropriate

    I see that this has not been updated in quite some time. Has this been an added feature at all?

  • Brandon commented  ·   ·  Flag as inappropriate

    With dynamic code snippets we can match against a field either being blank, equals, greater than/less than, checked, and not checked, but there is nothing about partial matching or "contains".

    We want to personalize messages based on a customer's favorite brand. Customers are encouraged to have multiple favorite brands, so I would like to include all of the customer's favorite brands in a single field (separated by commas or pipes), and then be able to check if the a specific brand exists in their list of favorites.

    Use case:
    Sending an email to the customer about a big sale going on. If one of their favorite brands is currently on sale, we can feature different imagery to that customer, and personalize the message. We would set it up in a big if/else conditional so that they would only see one message:
    {if $Contact.fav_brand eq "Nike"}{literal}Nike is on sale{/literal}
    {elseif $Contact.fav_brand eq "Reebok"}{literal}Reebok is on sale{/literal}
    {elseif $Contact.fav_brand eq "Puma"}{literal}Puma is on sale{/literal}
    {else}{literal}We've got stuff on sale!{/literal}

    I think the current workaround for this it to maintain a segment for every brand, and that becomes a lot of upkeep for us.

Join the UX Brigade!

Bronto’s User Experience team is interested in hearing from you. Would you like to participate?

Schedule Time Now

Feedback and Knowledge Base