Hi Everyone,
am trying to add comment history to capture the comments added by the user and stages of the approval.
Requirement is to show the comment by default, if user not added the comment remove the space.
Below is the reference code. But the condition seems not working.
Thanks to help here to learn more!
Discussion posts and replies are publicly visible
Hm ... your local would only react on the first comment being empty. But not for every item in the list. So you will have to check the comment being empty inside each element.
Why isn't your "showWhen" condition checking the existence of the same plaintext you're displaying in your "richTextItem" component? That's step 1, if you want each comment cell's visibility to be determined by the contents of that cell (rather than, as Stefan mentioned already, the contents of just the first item in the list).
Why not just do an isNullOrEmpty on the relationship for isCommentAvailable?