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
Bedrock Mission!

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?

umamaheswariy46
Level 5
Level 5

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

1 Reply
gaureshk3014423
Level 9
Level 9

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.