Author: Erik Haake
Date: 6/3/25
Audience: Everyone
Environmental details: Cloud and Self-Hosted
Summary
When adding an attachment to an item and the following error is encountered:
Unexpected error: o.control.getCustomValues is not a function...
the issue is likely that there is a custom, required field on the attachment item type. Below is how encountering the error might look:
This is how the Attachment Item type is configured:
Here, the attachment item type has a custom "Revision" text-box field that is marked as required.
Solution
The Attachment item type is a default system item that comes preconfigured with Jama. An instance of attachment is created whenever something is uploaded to the attachment field on an item that has that field.
Custom fields can be added to the Attachment item type, but they cannot be marked as required. The solution is to unmark the "required" check box next to the custom field.
Cause
A required field was added to the Attachment item type.
Additional Information/Metadata
- Attachment
- Error
- Item Type
- Required Field
References
Please feel free to leave feedback in the comments below.
Comments
0 comments
Please sign in to leave a comment.