In a process containing multiple form types, attachment categories may be required only for selected form types.
Currently, the optional attachment attribute used for categorization is configured at the process level. Its data source can return different values depending on the current form type. However, when the data source returns no categories, WEBCON still displays the “Select attachment category” dialog with “[None]” as the only available option.
This introduces an unnecessary step in the attachment upload process. The user must:
1. Click “Add attachment”.
2. See the attachment category dialog with only “[None]” available.
3. Click “Add” again.
4. Select the file.
I suggest adding one or both of the following features:
Allow the optional attachment category attribute to be enabled or disabled conditionally, based on the current form type.
Automatically skip the attachment category dialog when “[None]” is the only available option.
In such a case, clicking “Add attachment” should open the system file picker directly. The “[None]” group should also not be displayed in the attachment section.
Example:
Contract form type: categories such as “Contract”, “Appendix”, and “Other” are available.
Request form type: attachment categories are disabled, and clicking “Add attachment” opens the file picker directly.
A configuration option such as the following could be added:
“Skip category selection when no actual attachment categories are available.”
Alternatively, the optional attachment attribute could have an availability condition similar to standard form fields.
Implementing this through custom JavaScript requires modifying the dynamically generated dialog and interfering with the internal file upload control. Such a workaround is difficult to maintain and may stop working after a WEBCON BPS update.