Skip to content

[BUG] Missing required field asterisk on 'General observations' in therapy notes #158

Description

@AnshSharma100

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

  1. Log in as a therapist
  2. Go to Patients → click a patient profile
  3. Click "Write Therapy Note"
  4. Fill out all fields that show an asterisk
  5. Skip "General observations" (no asterisk shown)
  6. 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

  1. Verify that `DynamicInput.vue` renders asterisks for all field types when `required: true`
  2. Check that the "General observations" field config is being read correctly
  3. Ensure the asterisk CSS class applies to textarea labels, not just text inputs

Acceptance Criteria

  • "General observations" shows an asterisk next to its label
  • All required fields across all form types show asterisks consistently

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2: mediumImprovements, non-blocking bugsarea: formsContact form, request form, signupbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions