Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds configurable outdated-file handling for file upload fields.
This change allows form builders to enable a field-level option for file upload questions so existing files cannot be removed, but can instead be marked as outdated or restored. The behavior applies to both single-file and multi-file fields. Outdated files remain attached to the record and continue to count toward upload limits.
It also adds display controls for outdated files in HTML questions and grid/layout fields, so each widget/layout can decide whether outdated files should be visible. Outdated files are visually marked with a warning icon wherever they are displayed.
Fixes: AB#134566 - ABC - Allow outdated files in file(s) fields
Useful links
Type of change
How Has This Been Tested?
The following checks were run locally:
npx nx lint sharednpx nx test shared --runInBandnpm run lintnpm run buildManual verification performed:
Allow marking files as outdatedon single-file and multi-file upload fields.Show outdated filescan hide outdated files in HTML questions.Show outdated filescan hide outdated files in grid layout fields.Screenshots
Single and multi-file fields now have the options to mark files as outdated:
Adding the mark to any file:
These fields can be referenced on HTML fields and Grids. Configuration allows for them to show (or not) the outdated files.
How outdated files are shown in Grids and HTML fields:
Outdated files on view mode:
When the Show Outdated Files toggle is off:
Checklist:
( * == Mandatory )