Skip to content

Prevent submitting when non-CSV file selected on front-end

What does this MR do and why?

Prevent form submission without a valid CSV file

  • Added validation to ensure the submit button won't trigger form submission until a correct CSV file is selected.

  • Reused existing Dropzone error messages for consistency.

  • Had to manually control modal closing and update test cases accordingly.

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

To validate locally:

  1. Import a group via Direct Transfer
  2. Navigate to the newly imported group
  3. Go to Group Members
  4. Select Placeholders tab
  5. Click on Reassign with CSV File

Screen Recording 2025-03-13 at 17.27.48.mov

Related to

Edited by Rez

Merge request reports

Loading