Hi Suhaib,
as far as I know I think you can not do the “conditional validation” with the generated task forms.
I suggest that you should create your own task form (embedded task form), where you can easily do this.
See this https://docs.camunda.org/manual/7.6/user-guide/task-forms/#embedded-task-forms for more information about the forms.
Hope that helps.
Cheers,
Lukas
Oh, I am sorry I thought we are talking about doing this whole thing in modeler or generated task forms.
Unfortunately, I do not know how to do this in java.
This topic is 3 years old so probably not a good place to get your question answered.
Can you create a new topic with more details about exactly what you’re trying to achieve and we can try to help you out.