Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Disable "Add Comment" in Comment Field in TableView based on value in another field

Kevin Gleeson April 15, 2025

Hey folks,

I have a Confiform which has a Comments Field included. Throughout the lifetime of the request the Comments field is active. However there is a final Table View page where all the fields for the request should be essentially "Read-only". The status of the request reaches Resolved (adding comments at this stage causes issues with the status etc). All the inline edits etc for the fields have been disabled.

However the "Add Comment" functionality of the Comments field remains active.

I was wondering is there a way to disable the Add Comment functionality (as disabling inline edits isn't working) or add an error message somehow to any modification of the Comments Filed when the request has the specific "Resolved" status to prevent comments being added?

Thank you very much for your time

Screenshot 2025-04-16 at 07.15.13.png

1 answer

0 votes
Alex Medved _ConfiForms_
Community Champion
April 17, 2025

Probably the best option here would be to configure the Comment field to have an "edit restriction" (Field Definition parameter), which is managed through some other field (hidden, for example)... Something like [entrty.myhiddenfield]

This hidden field gets a value (by default and most of the type it is empty, allowing edits) when status changes to "final state"... And the value it gets is some security group name, for example, which has no members. Basically allowing only members of this group to edit, but as there are not any in the group, that means no one will be able to 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events