How can we display default value in content if we don't have value in Profile by using profile. Attribute name? | Community
Skip to main content
Umamaheswari_Yakkala
New Participant
June 7, 2021
Solved

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

  • June 7, 2021
  • 1 reply
  • 1035 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Gaureshk_Kodag

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.

1 reply

Gaureshk_Kodag
Gaureshk_KodagAccepted solution
Employee
June 12, 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.