Description
In the therapy notes form, the "General observations" field is required but doesn't display an asterisk (`*`) next to its label, making users think it's optional. They fill out all visually-required fields and get blocked on submission.
Steps to Reproduce
- Log in as a therapist
- Go to Patients → click a patient profile
- Click "Write Therapy Note"
- Fill out all fields that show an asterisk
- Skip "General observations" (no asterisk shown)
- Click Save — error says "General observations" is required
Root Cause
Config file (`/types/FormConfig/TherapyForms/TherapyInfoTypes/therapyIncidentInfo.ts`, line 23):
The field IS marked as `required: true` in the config, so the form renderer should be showing an asterisk.
Possible causes:
- The `DynamicInput.vue` component may not be rendering the asterisk for this specific field type (textarea)
- The field may be in a different config section than expected
- The required flag may not propagate to the rendered label
Fix
- Verify that `DynamicInput.vue` renders asterisks for all field types when `required: true`
- Check that the "General observations" field config is being read correctly
- Ensure the asterisk CSS class applies to textarea labels, not just text inputs
Acceptance Criteria
Description
In the therapy notes form, the "General observations" field is required but doesn't display an asterisk (`*`) next to its label, making users think it's optional. They fill out all visually-required fields and get blocked on submission.
Steps to Reproduce
Root Cause
Config file (`/types/FormConfig/TherapyForms/TherapyInfoTypes/therapyIncidentInfo.ts`, line 23):
The field IS marked as `required: true` in the config, so the form renderer should be showing an asterisk.
Possible causes:
Fix
Acceptance Criteria