Creating dynamic content rule in delivery with first name > 2 characters

Avatar

Avatar

George-CT5

Avatar

George-CT5

George-CT5

18-11-2020

Hi all,

 

I'm looking to create a dynamic content rule targeting those who have a first name that is more than characters long.

 

I have done this in JavaScript in a segmentation node to give them a separate delivery, but I want to do it within the same delivery.

 

JavaScript used in segmentation node: Length(@firstName)>2

 

Does anyone know how to apply this rule within delivery dynamic content?

 

Thanks,

George

View Entire Topic

Avatar

Avatar

shelly-goel

Avatar

shelly-goel

shelly-goel

21-11-2020

@George-CT5

There's also a possibility to use advanced mode in dynamic condition where you can enter the length condition (as not available in basic mode) like context.profile.firstName.length > 2. If you have simple content display condition based on length you might also want to try out with "Visibility Condition". Refer this for detailed steps.

shelly-goel_0-1605994669749.png