Which product are you using?
PDF.js Express Viewer
PDF.js Express Version
8.7.4
Detailed description of issue
Is it possible to disable the auto reply created by updating annotation state? Is it also possible to decouple the icon shown on the sticky note from the reply? It seems like setting the State property directly does not have an effect on the UI.
Expected behaviour
Here the icon is ‘Completed’ but only because of the reply. Otherwise the icon would be None even though the State isn’t.
Does your issue happen with every document, or just one?
All documents.
Hello dopefakedusername,
Would disabling the elements work for you?
That would make the state not changeable by the user.
For removing the auto-reply, theres no API, however a reply is essentially another annotation with its “in-reply-to” pointing to the ID of the parent. Therefore you could just delete that new annotation when its created.
Best regards,
Tyler
My issue is that the reply is coupled with the note status. If I delete the reply when its created, the note status defaults to ‘None’. I would like it to be possible to have whatever note status is required while also not having the reply.
Hello dopefakedusername,
Try:
annotationManager.updateAnnotationState(annotation, 'Completed');
// or
annotation.State = "Completed"
Best regards,
Tyler
I have tried this actually. Problem is that the status button wouldn’t reflect this manually set state. Which kinda defeats the purpose of having the status button.