How to display text in particular view mode | Community
Skip to main content
July 18, 2022
Solved

How to display text in particular view mode

  • July 18, 2022
  • 2 replies
  • 662 views

<sly data-sly-test.editor="${wcmmode.edit || wcmmode.design}"></sly>

<div id=" " class="${editor?'abcd xyz myclass':'abcd xyz'}">

     ........

</div>

I Found this answer but I can't use

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 Pulkit_Jain_

@vindiesel 

Which component are you referring to? Could you elaborate?

There is an option to add text as a placeholder for most components, so you can check that.

More information - https://experienceleague.adobe.com/docs/experience-manager-64/forms/adaptive-forms-basic-authoring/placeholder-text-in-aem-forms-.html?lang=en 

Hope this helps!

2 replies

Pulkit_Jain_
Adobe Employee
Pulkit_Jain_Adobe EmployeeAccepted solution
Adobe Employee
July 18, 2022

@vindiesel 

Which component are you referring to? Could you elaborate?

There is an option to add text as a placeholder for most components, so you can check that.

More information - https://experienceleague.adobe.com/docs/experience-manager-64/forms/adaptive-forms-basic-authoring/placeholder-text-in-aem-forms-.html?lang=en 

Hope this helps!

Mayank_Gandhi
Adobe Employee
Adobe Employee
July 19, 2022

@vindiesel Please share the snippet of the component, and implementation.