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

How can we display default value in content if we don't have value in Profile by using profile. Attribute name?

Avatar

Avatar
Validate 10
Level 3
umamaheswariy46
Level 3

Likes

12 likes

Total Posts

144 posts

Correct Reply

5 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 10
Level 3
umamaheswariy46
Level 3

Likes

12 likes

Total Posts

144 posts

Correct Reply

5 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
umamaheswariy46
Level 3

07-06-2021

we are planning to use this attribute in AEM content to display vallue dynamically  "${profile.preferredCurrency}");. 

 

How can display this value more gracefully like if there is no value in this ttaribute I would like to show default value from content. 

 

Any sugesstions/ideas how to handle that.

 

Thank You

Uma

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Springboard
Level 8
gaureshk3014423
Level 8

Likes

195 likes

Total Posts

166 posts

Correct Reply

31 solutions
Top badges earned
Springboard
Validate 1
Contributor
Coach
Shape 10
View profile

Avatar
Springboard
Level 8
gaureshk3014423
Level 8

Likes

195 likes

Total Posts

166 posts

Correct Reply

31 solutions
Top badges earned
Springboard
Validate 1
Contributor
Coach
Shape 10
View profile
gaureshk3014423
Level 8

12-06-2021

Maybe before directly showing value in content just write one if condition which checks if that particular profile script is returning empty value? If yes then show.default content if not then change default content.