Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Color Failed Field - Form Properties

AEM_USER1
Level 3
Level 3

this below is from Generated code when chosing the form properties validation options. the question is how do we take care of radio buttons? it seems it only allows you to validate textfields or excelgroups?

 

 

// Only color nodes that are <field>s or <exclGroup>s
// Ignore everything else
if ((sClassName != "field") &&
(sClassName != "exclGroup")) {
return;
}

 

 

thanks 

1 Accepted Solution
_Bruce_Robertson
Correct answer by
Level 10
Level 10

Hi,

 

The exclGroup is the container for the radio buttons, so this code will put the border around all the radio buttons, as opposed to each one individually.  So, this is generally what you want.

 

What effect are you wanting from the validation colouring?

 

Regards

Bruce

View solution in original post

1 Reply
_Bruce_Robertson
Correct answer by
Level 10
Level 10

Hi,

 

The exclGroup is the container for the radio buttons, so this code will put the border around all the radio buttons, as opposed to each one individually.  So, this is generally what you want.

 

What effect are you wanting from the validation colouring?

 

Regards

Bruce

View solution in original post