Color Failed Field - Form Properties

Avatar

Avatar
Validate 1
Level 2
AEM_USER1
Level 2

Like

1 like

Total Posts

46 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 1
View profile

Avatar
Validate 1
Level 2
AEM_USER1
Level 2

Like

1 like

Total Posts

46 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 1
View profile
AEM_USER1
Level 2

27-01-2020

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 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
MVP
_Bruce_Robertson
MVP

Likes

271 likes

Total Posts

1,782 posts

Correct reply

372 solutions
Top badges earned
Establish
Give Back 25
Give Back 10
Give Back 5
Give Back 3
View profile

Avatar
Establish
MVP
_Bruce_Robertson
MVP

Likes

271 likes

Total Posts

1,782 posts

Correct reply

372 solutions
Top badges earned
Establish
Give Back 25
Give Back 10
Give Back 5
Give Back 3
View profile
_Bruce_Robertson
MVP

27-01-2020

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

Answers (0)