Home > Forum > User Voice > Set all attachments tab as default

Set all attachments tab as default
1

Hi, when entering a workflow -> Main form -> Attachments section there is an option called 'Related attachments'. This is really useful since it allows displaying attachments from sub-workflows/parent workflows or via SQL and it can save a lot of disk space.
The issue is that the related attachments don't appear in the same tab as standard attachments. Users, unless they are aware of the second tab, usually don't even check it and may miss some files.
This issue, besides related attachments, also applies to email conversations.
The idea is that it would be great to have a checkbox or dropdown list (under the checkbox enabling related attachments) that allows choosing which tab should be the default one. This way, the related attachments section and attachments from the current element could be set as the main visible tab.

Maybe this option already exists and I haven't found it yet - if so, please let me know.

Additional idea - currently, when using SQL query for related attachments, we are limited to 3 groups of attachments. It would be much more flexible if SQL could return a column like GroupName, allowing attachments to be grouped dynamically without those limitations.

Krzysztof,
For now, you can create a form rule for opening the page that checks if there are any related attachments, and JS sets the “All attachments” tab - under 3055, insert the ID of your attachments.


setTimeout(() => {
document
.querySelector('#SEL_SystemAttachments_3055 a.tab__nav[aria-controls="all-attachments"]')
?.click();
}, 1000);

MVP

I thought, that there would be other user voice for this, but I didn't found any, but never mind.

If you want a more generic approach you could use either of these form rules:

Show all attachments after page load
https://daniels-notes.de/posts/2021/javascript-form-rule-execution-on-page-load#show-all-attachments-after-page-load

Show all attachments with collapsed folders
https://daniels-notes.de/posts/2024/show-all-attachments-with-collapsed-folders

It's interesting that the first on is almost 4 years old.