Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

How to Clear red border for a mandatory field

Avatar

Level 7

  On exit event I am using the script below to clear the red mandatory border around the field:

if (IssueDate.rawValue != null)

{IssueDate.mandatory = "disabled";

}

else

{ IssueDate.mandatory = "error";}

I am using the same script for a field in a repeating row of a table

but does not work!

What I am doing wrong?

Thank you for your help

2 Replies

Avatar

Level 7

Any help on this one?

Thank you

Avatar

Former Community Member

Hi mmgiath,


border.presence = "hidden";      // hides entire border — all edges and fill

border.fill.presence = "hidden"; // makes the border fill transparentborder.getElement("edge", 0).presence = "hidden"; // hides the first edge

I hope this could help