Prevent users from creating a new application if there is an active application:
In Select Facility Page, when the user clicks Next, we will check if there are any active applications:
--> Yes: check if there is any DRAFT application
----------> Yes: redirect user to DRAFT application
----------> No: redirect user to the Active application having the latest Submitted Date.
--> No: create a new application
Update the Cancel button behavior in OFM Application:
Old behavior: Cancel/Deactivate the current application
New behavior: Cancel the changes they have made since the last save
Changes in this PR:
Prevent users from creating a new application if there is an active application: In Select Facility Page, when the user clicks Next, we will check if there are any active applications: --> Yes: check if there is any DRAFT application ----------> Yes: redirect user to DRAFT application ----------> No: redirect user to the Active application having the latest Submitted Date. --> No: create a new application
Update the Cancel button behavior in OFM Application: