Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Level 1
George-CT5
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
George-CT5
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
View profile
George-CT5
Level 1

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Avatar

Avatar
Validate 500
Employee
Sukrity_Wadhwa
Employee

Likes

131 likes

Total Posts

801 posts

Correct Reply

35 solutions
Top badges earned
Validate 500
Validate 250
Validate 100
Validate 25
Validate 50
View profile

Avatar
Validate 500
Employee
Sukrity_Wadhwa
Employee

Likes

131 likes

Total Posts

801 posts

Correct Reply

35 solutions
Top badges earned
Validate 500
Validate 250
Validate 100
Validate 25
Validate 50
View profile
Sukrity_Wadhwa
Employee

07-12-2020

Hi @George-CT5,

Were you able to resolve this query or do you still need more help here? Do let us know.

Thanks!

Avatar

Avatar
Validate 1
MVP
shelly-goel
MVP

Likes

155 likes

Total Posts

294 posts

Correct Reply

81 solutions
Top badges earned
Validate 1
Shape 1
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
MVP
shelly-goel
MVP

Likes

155 likes

Total Posts

294 posts

Correct Reply

81 solutions
Top badges earned
Validate 1
Shape 1
Ignite 1
Give Back 5
Give Back 3
View profile
shelly-goel
MVP

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

 

Avatar

Avatar
Validate 1
Level 2
anasso83525035
Level 2

Likes

6 likes

Total Posts

30 posts

Correct Reply

6 solutions
Top badges earned
Validate 1
Give Back 3
Give Back
Boost 5
Boost 3
View profile

Avatar
Validate 1
Level 2
anasso83525035
Level 2

Likes

6 likes

Total Posts

30 posts

Correct Reply

6 solutions
Top badges earned
Validate 1
Give Back 3
Give Back
Boost 5
Boost 3
View profile
anasso83525035
Level 2

21-11-2020

Hello @George-CT5,

 

There are two ways to do this depending on your end goal :

 

  • If the difference in content is just a greeting sentence you may want to use a content block and do your JS conditions in it directly.

 

  • If the content difference is significant you should go with dynamic content directly in your delivery by leveraging the segment codes in your split activity :

anasso83525035_0-1605970554445.png

anasso83525035_1-1605970675587.png

anasso83525035_2-1605970736257.png

 

anasso83525035_3-1605970787237.png

 

anasso83525035_4-1605970835675.png

 

Hope this is clear enough.