In the Image if user checks approved box then the comment field should set as not mandatory, if user checks rejected box then the comment field should set as mandatory field
for example
if user checks rejected checkbox and the comment field set as mandatory and after sometime the user check approved then the comment field set as not mandatory
I feel this is not a BPM question. Based on your javascript either React or Angular) you need to implement the logic. It’s pure javascript implementation.