Edit Existing Comments
Hi all,
I've been trying to figure out if its possible to edit an existing Analyst/End User Comment using the portal.
Reason for wanting this is that sometimes comments can be inappropriate or contain sensitive data (passwords) that shouldn't be in there. All I've found online are about creating new comments but all I want to do is change existing ones.
Been playing around with it in custom.js and I can do something along the lines of:
pageForm.viewModel.AppliesToTroubleTicket[0].set("Comment", "My new comment content"));
Seems fine, I can see my changes in the viewModel but clicking Apply/Submit doesn't save them.
Is there any way to accomplish something like this?
Thanks.
Answers
This might work for you. I'd recommend adjusting the regex patterns and disallowed words to suit your needs. Also beware that this will remove everything after "password" as a means of trying to make sure no password data is being sent.