Color Failed Field - Form Properties

Avatar

Avatar

AEM_USER1

Avatar

AEM_USER1

AEM_USER1

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

_Bruce_Robertson

MVP

Total Posts

1.8K

Likes

268

Correct Answer

372

Avatar

_Bruce_Robertson

MVP

Total Posts

1.8K

Likes

268

Correct Answer

372
_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)