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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Setting Exclusion Group to Required in FormCalc or Javascript

mrrcomp_1
Level 2
Level 2

Hi

I am looking for the syntax to toggle an Exclusion Group to required or optional

For regular text fields I am using field.validate.nulltest="error"  or field.validate.nulltest="disabled" however for the exclusion groups thats not working.

HELP

Suggestions?

Meir

2 Replies
Jono_Moore
Level 10
Level 10

I don't think I've ever used .validate.nulltest for this. Not sure what the difference is (except maybe the exclusion groups!).

For all field types I use:

field.mandatory = "error";

field.mandatory = "disabled";

mrrcomp_1
Level 2
Level 2

Hi

Thanks for your response. It seems the code was ok the problem was that the behaviour of the exclusion groups is different depending on Version and wheter the form is static or dynamic.

Again thanks for your response

Regards

Meir