Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Hide a single edge of a text field


Former Community Member
Hi, I have a text field and want to be able to hide one side at a time through javascript. Is this possible?

2 Replies


Former Community Member

You can try this:

this.border.getElement("edge",0).presence = "visible"; //top edge

this.border.getElement("edge",1).presence = "visible"; //bottom edge

this.border.getElement("edge",2).presence = "visible"; //left edge

this.border.getElement("edge",3).presence = "visible"; //right edge