Conditionally make <TextField> required or optional based on selections of multiple <Checkbox>

Hello All !

I am working on changes to a which contains a . Inside the form there are 3 along with a for each (See below screenshot)

form

My requirement is to make the “Label” () for “Metric 1” () optional if only “Metric 1” is checked.

If any of “Metric 2” or “Metric 3” or both “Metric 2” & “Metric 3” are checked “Label” for “Metric 1” needs to be required.

Is it possible to do with ui-kit and how do I do that ?