How to set dependencies between fields as per the below scenario?

Udbhav
Tera Contributor

There is a field named as "FIELD 1" having 3 options a, b, c. There are 3 more fields A, B, C but in the beginning fields A, B, C are invisible in the form.

Condition is -->> if I select option a in FIELD 1 then field A should become visible in the form, similarly choosing options b and c, fields B and C should become visible.

1 ACCEPTED SOLUTION

Clara Lemos
Mega Sage
Mega Sage

Hi @Udbhav ,

 

To achieve that add 'FIELD 1', 'Field A', 'Field b', 'Field C ', to your form layout in the desired position.

After that, navigate to System UI > UI Policies.

Click on  'new' (top right)

Screenshot 2023-11-12 at 10.42.41.png

For table : select the table that you are doing your configuration

For your condition: 'FIELD 1' is 'a'

Keep 'Reverse if false' selected so that the field will be hidden if 'b' or 'c' or none is selected

Save your form 

At the bottom of your form you'll see the related list " UI Policy Action" , select 'new'

Complete the form as follow: 

Screenshot 2023-11-12 at 10.49.00.png

 Save it !

 

Now you'll want to configure 2 more UI Polices similar to the above.

One you modify the condition to be : 'FIELD 1' is 'b' , and in your policy action add 'FIELD B' instead of 'FIELD A'

And for the third one, you should modify the condition to be : 'FIELD 1' is 'c' , and in your policy action add 'FIELD C' instead of 'FIELD A'

 

If that helps please mark my answer as correct / helpful!
And if further help is needed please let me know

Cheers

 

 

 

 

View solution in original post

2 REPLIES 2

Clara Lemos
Mega Sage
Mega Sage

Hi @Udbhav ,

 

To achieve that add 'FIELD 1', 'Field A', 'Field b', 'Field C ', to your form layout in the desired position.

After that, navigate to System UI > UI Policies.

Click on  'new' (top right)

Screenshot 2023-11-12 at 10.42.41.png

For table : select the table that you are doing your configuration

For your condition: 'FIELD 1' is 'a'

Keep 'Reverse if false' selected so that the field will be hidden if 'b' or 'c' or none is selected

Save your form 

At the bottom of your form you'll see the related list " UI Policy Action" , select 'new'

Complete the form as follow: 

Screenshot 2023-11-12 at 10.49.00.png

 Save it !

 

Now you'll want to configure 2 more UI Polices similar to the above.

One you modify the condition to be : 'FIELD 1' is 'b' , and in your policy action add 'FIELD B' instead of 'FIELD A'

And for the third one, you should modify the condition to be : 'FIELD 1' is 'c' , and in your policy action add 'FIELD C' instead of 'FIELD A'

 

If that helps please mark my answer as correct / helpful!
And if further help is needed please let me know

Cheers

 

 

 

 

Hi @Clara Lemos ,

Thank you very much, it worked.