WebViewer Version: 11.4.0
Do you have an issue with a specific file(s)? No
Can you reproduce using one of our samples or online demos? No
Are you using the WebViewer server? No
Does the issue only happen on certain browsers? No
Is your issue related to a front-end framework? No
Is your issue related to annotations? Yes
Please give a brief summary of your issue: annotationChanged Event does not work for some modifications when using Signature Form Field.
(Think of this as an email subject)
Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
Please refer to the attachment.
For the field name or Include Field Indicator Check, the event works normally.
However, for Read Only Check Box, Required Check Box, and File Size Input, the annotation Changed Event does not work even if the modifications occur, is there a solution?
annotationManager.addEventListener(
"annotationChanged",
annotationChanged
);
const annotationChanged = async (
annotations: Core.Annotations.Annotation[],
action: "add" | "modify" | "delete"
) => {
if (!instance || isImportingRef.current) return;
console.log({ annotations, action });
}
1 Like
Hello, I’m AiRon, an automated tech support bot 
While you wait for one of our customer support representatives, I can help you with your question.
It seems you’re experiencing issues with the
annotationChanged
event not triggering for certain modifications within a Signature Form Field in WebViewer. This event should fire whenever an annotation is added, modified, or deleted, but there are scenarios where it might not be working as expected for specific field modifications.
Some things you can try:
- Check if the
annotationChanged
event is properly set up and listening for changes on these specific form fields.
- Ensure that the fields in question (Read Only, Required, and File Size Input) are correctly linked to the event listener.
- Verify that the event handler is not filtering out these specific types of changes by mistake.
- Consider using the
imported
or isUndoRedo
properties of the event’s info object to handle specific cases differently.
- Test with other types of annotations to confirm if the issue is isolated to Signature Form Fields.
Here are some resources that might help you:Hopefully, this helps you solve your problem while you wait for a human to get back to you.
1 Like
Hi Rlaks5757,
Thank you for reaching out.
I can confirm we don’t have an eventListener for this type of changes for now.
You can make a feature request to create an eventListener on these changes here:
Let us know if you have any questions.
Best Regards,
Mickaël.
1 Like