How to display text in particular view mode | Community
Skip to main content
New Participant
Jul 18, 2022 2:06 PM UTC
Solved

How to display text in particular view mode

<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.
Pulkit_Jain_
Pulkit_Jain_Accepted solution
Employee
Jul 18, 2022 3:14 PM UTC

@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

Mayank_Gandhi
Employee
Jul 19, 2022 4:58 AM UTC

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

Translate
Pulkit_Jain_
Pulkit_Jain_Accepted solution
Employee
Jul 18, 2022 3:14 PM UTC

@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!

Translate