Time Sheet Portal: Prevent time card submission when required subcategories are not populated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2024 01:49 PM
We are in the process of implementing a time taxonomy where a single category may have anywhere from 0 to 4 dependent subcategories (e.g., Category > Product Line > Product Type> Region > Country).
In the time card form view, each subcategory in that chain is required to be populated before the time card can be saved. If not populated, an error message displays with the message "Some fields are incomplete: [Subcategory]" when trying to save the time card. Interestingly, the same message displays in the time sheet portal header.
For that same scenario, if I were to select a category from within the time sheet portal, click "Add to Time Sheet", enter time against that category from within the portal view, then submit the time card, none of the validations to restrict the submission take place. The time is only captured at the category level and none of the required subcategories are populated.
Does anyone know of a way to not allow users to submit entries from the time sheet portal when those required subcategories are not populated?