# How to prevent ungrouping grouped rubber stamps

**URL:** <https://pdfjs.community/t/how-to-prevent-ungrouping-grouped-rubber-stamps/1892>\
**Category:** Technical Support\
**Created:** [July 20, 2022, 11:11pm UTC](https://pdfjs.community/t/how-to-prevent-ungrouping-grouped-rubber-stamps/1892 "2022-07-20T23:11:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adil](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/adil/32/857_2.png) [@adil](https://pdfjs.community/u/adil)\
**Post date:** [July 20, 2022, 11:11pm UTC](https://pdfjs.community/t/how-to-prevent-ungrouping-grouped-rubber-stamps/1892/1 "2022-07-20T23:11:44Z")

</div>

**Which product are you using?**

- PDF.js Express Plus

**PDF.js Express Version**

- 8.2.0

**Detailed description of issue**  
When grouping programmatically two annotations (stamps), the user can ungroup them from the button that appears when clicking the grouped stamps.

\*\*Expected \*\*  
How to disable or hide the ungroup button  
 ![Screen Shot 2022-07-20 at 19.07.31](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/71545e8b34a22ea865504e08be3f347ce4251177.png)

**Does your issue happen with every document, or just one?**  
It happen with every document

**Link to document**  
{Provide a link to the document in question if possible}

**Code snippet**  
{Provide a relevant code snippet}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/ffbcd25c7d423db8d5acd5db201c272f4db306dd.png) [@system](https://pdfjs.community/u/system)\
**Post date:** [July 20, 2022, 11:11pm UTC](https://pdfjs.community/t/how-to-prevent-ungrouping-grouped-rubber-stamps/1892/3 "2022-07-20T23:11:50Z")

</div>

**Hello, I’m Ron, an automated tech support bot 🤖**

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:
- [Customizing WebViewer UI Popups](https://pdfjs.express/documentation/ui-customization/customizing-popup.8)
- [Annotation permissions - Default behavior](https://pdfjs.express/documentation/annotation/annotation-permissions#default-behavior)
- [Create annotations - Programmatically](https://pdfjs.express/documentation/annotation/create-annotations#programmatically)

APIs:
- [Core.Tools.TextTool - disableImmediateActionOnAnnotationSelection()](https://pdfjs.express/api/Core.Tools.TextTool.html#disableImmediateActionOnAnnotationSelection__anchor)
- [Core.Annotations.StickyAnnotation - new StickyAnnotation( [initializer])](https://pdfjs.express/api/Core.Annotations.StickyAnnotation.html#StickyAnnotation__anchor)
- [Core.Annotations.CustomAnnotation - new CustomAnnotation(type [, initializer])](https://pdfjs.express/api/Core.Annotations.CustomAnnotation.html#CustomAnnotation__anchor)

Forums:
- [Issue with Key permission](https://pdfjs.community/t/issue-with-key-permission/1761/1)
- [How hide annotation when toolbar group changed](https://pdfjs.community/t/how-hide-annotation-when-toolbar-group-changed/1574/1)
- [Download PDF with annotations](https://pdfjs.community/t/download-pdf-with-annotations/670/1)

---

<div class="post-metadata">

**Author:** ![adil](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/adil/32/857_2.png) [@adil](https://pdfjs.community/u/adil)\
**Post date:** [July 21, 2022, 12:00am UTC](https://pdfjs.community/t/how-to-prevent-ungrouping-grouped-rubber-stamps/1892/4 "2022-07-21T00:00:47Z")

</div>

Thanks  
I found the answer in this guide: [Popup API with JavaScript | PDF.js Express SDK](https://pdfjs.express/documentation/ui-customization/customizing-popup.8)  
Regards
