UI Policy or Business Rule or Client Script?

JamesLindsay
Giga Guru

I have two True/False fields on a form/table. Only one or the other should be checked, never both. What's the best way to go about implementing that?

1 ACCEPTED SOLUTION

SAI VENKATESH
Tera Sage
Tera Sage

Hi @JamesLindsay 

 

For the two True/False fields use UI Policy to achieve that.

 

Implementation:

 

Two true/false fields:  A and B

 

ui policy condition:

 

A is True/false(ui policy condition)

then UI policy actions:

 

make B visible : false;

 

 

Thanks and Regards

Sai Venkatesh

 

 

 

View solution in original post

5 REPLIES 5

Sandeep Rajput
Tera Patron
Tera Patron

@JamesLindsay The best way is to use a UI Policy to address this requirement.

SAI VENKATESH
Tera Sage
Tera Sage

Hi @JamesLindsay 

 

For the two True/False fields use UI Policy to achieve that.

 

Implementation:

 

Two true/false fields:  A and B

 

ui policy condition:

 

A is True/false(ui policy condition)

then UI policy actions:

 

make B visible : false;

 

 

Thanks and Regards

Sai Venkatesh

 

 

 

Gangadhar Ravi
Giga Sage
Giga Sage

UI policy is best for your use case. 

VEEN PRANEETH K
Tera Contributor

@JamesLindsay 

You can use UI Policy 

Make the second question visibility false, if the question 1 is answered with either true or false. same with the second question, if answered make the question 1 visibility false.