Home > Forum > Tips&Tricks > How to hide attachment categories for a specific form type?

How to hide attachment categories for a specific form type?
2

Hello,
I have a process containing multiple form types. I configured an optional attachment attribute called Category, with its values provided by an SQL data source.
The SQL query returns attachment categories only for one specific form type. For the other form types, the query returns no rows because I do not want to use attachment categories there.
However, on those other form types, WEBCON still displays the attachment group “None” for attachments without an assigned category.
My expected behavior is:

For form type A: display the configured attachment categories.
For form type B: do not display any category or grouping at all. Attachments should be displayed normally, without the “None” group.

Is it possible to conditionally disable or hide the optional attachment attribute depending on the current form type?
Alternatively, is there any supported way to hide the “None” attachment group when the category data source returns no values?
I would prefer to keep both form types in the same process and avoid using a technical default category such as “Attachments”.
Thank you in advance for any suggestions.

MVP

Hi Łukasz,
As far as I'm aware there is no such possibility built into the platform.
When there are attachments on the form - they are displayed on each form in the process equally.

There is also no way to hide the None group, you could alias it, or provide other name. (In theory, you could provide a different default value, and use a JavaScript to hide the None group on the form, it might be the only way unfortunately).
Pop up will show up - you don't really have native control over it, maybe with some JS it could be hidden/clicked automatically but it will be brittle to platform changes.

I'd eventually look up if 'Related attachments'* view will somehow solve it for you. Here you are able to select which attachments are shown, so you have a bit more control on how they are displayed, but the layout is different.
With a short JavaScript, you could automatically activate proper 'attachment tab', depending on the form type.


* https://docs.webcon.com/docs/2026R2/Studio/Workflow/Forms/GlobalFormTemplate#8-related-attachments