Hi Tanmay,
Below are the requirements of your scenario:
Add 2 feedback text area fields along with 2 different visibility conditions
Along with your boolean variable keep one more visibility condition based on feedback attribute value.
Consider your feedback text area widget is mapped with Feedback Attribute:
Add the below condition expressions for visibility condition
First Req:
$currentObject/Feedback=empty and not(IsFeedbackActive)
In this case, feedback will be empty and your isFeedbackActive value will be false which means our condition will result like true and not(false) → true and true results true
So the field will be visible and editable
Second Req:
$currentObject/Feedback!=empty and IsFeedbackActive
In this case, feedback will not be empty and your isFeedbackActive value will be true which means our condition will result like true and true → true and true results true
So the field will be visible and editable
Third Req:
$currentObject/Feedback=empty and not(IsFeedbackActive)
In this case, feedback will be empty and your isFeedbackActive value will be true which means our condition will result like true and not(true) → true and false results false
So the field will be closed
First Requirement and Third Requirement will have same condition whereas 2nd will be having different one