Skip to content

Conversation

@hayeshorus
Copy link
Collaborator

@hayeshorus hayeshorus commented Dec 30, 2025

Summary

Work for #7109

Changes proposed

Updated logic when application status is submitted radio buttons are disabled

"Submit with Application" radio should be conditionally disabled

screenshot of html page for docraptor
Screenshot 2025-12-30 at 11 24 31 AM

Changes proposed

Added logic to conditionally disable radio buttons when application status is submitted

Validation steps

  1. Create a new application
  2. Verify radio buttons are enabled when status is set to in progress.
  3. Select radio button to no or yes.
  4. Fill out CD511 if yes
  5. Submit application.
  6. Verify application status is set to submitted and radio buttons are disabled.

hmurdock/7380-conditionally-disable-radio update logic to disable radio button when application status is submitted
hmurdock/7380-conditionally-disable-radio updated tests to add application status information to test classes
hmurdock/7380-conditionally-disable-radio updated test logic
hmurdock/7380-conditionallyu-disable-radio prettier updates for failing tests
hmurdock/7380-conditionally-disable-radio updated test logic for failing tests
@ErinPattisonNava
Copy link
Collaborator

Not sure what happened, but it seems that the PR template got confused? Can you put it back?

It should list either fixes or work, not both. That determines if UAT in needed. For this PR, since it is a bug, UAT isn't required.

The name of the PR needs to follow [Issue #xxxx] description to look correct in our release notes, see example here

hmurdock/7380-conditionally-disable-radio updated to use object and updated tests
hmurdock/7380-conditionally-disable-radio updated tests and fixes to snapshot
hmurdock/7380-conditionally-disable-radio updated lint fixes
hmurdock/7380-conditionally-disable-radio format-check fixes for prettier
@hayeshorus hayeshorus changed the title hmurdock/7380-conditionally-disable-radio Issue #7380 Conditionally disable radio buttons based off status Jan 2, 2026
@hayeshorus hayeshorus changed the title Issue #7380 Conditionally disable radio buttons based off status [Issue #7380] Conditionally disable radio buttons based off status Jan 2, 2026
hmurdock/7380-conditionally-disable-radio updated tests and format adding back needed parameters
hmurdock/7380-conditionally-disable-radio updated code for format check errors
Copy link
Collaborator

@ErinPattisonNava ErinPattisonNava left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the forms show up both under the required list and the conditional list, regardless of whether they are conditional or required.

<h3>{t("requiredForms")}</h3>
<ApplicationTable
forms={forms}
applicationForms={requiredForms}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this is just the required forms.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, then forms only required will show, else nothing will show?

</p>
<ApplicationTable
forms={forms}
applicationForms={conditionalRequiredForms}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this is supposed to just be the conditional forms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants