Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: disabled state for questions targetted by assign actions #90

Merged
merged 1 commit into from
Feb 19, 2025

Conversation

MatiasArriola
Copy link
Contributor

📌 References

📝 Implementation

  • Added a new computed property to QuestionnaireQuestion
    • This property is set to true when an "assign" action from a program rule sets the question value, otherwise false.
  • Disable the QuestionWidget if computed value is true
  • Why a new property?
    • Allows reverting the "disabled" state in the view
    • Prevents unintentionally enabling a field that was disabled due to other conditions

📹 Screenshots/Screen capture

2025-02-17.08-55-51.mp4

@ifoche
Copy link
Member

ifoche commented Feb 17, 2025

Copy link
Contributor

@9sneha-n 9sneha-n left a comment

Choose a reason for hiding this comment

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

@MiquelAdell MiquelAdell merged commit 2b8d32f into development Feb 19, 2025
1 check passed
@MiquelAdell MiquelAdell deleted the fix/assign-disabled-state branch February 19, 2025 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants