Add text validation to appointment custom text in Service Location #17124
Labels
CY24-Q2
Calendar year Q2 2024 priority
Drupal engineering
CMS team practice area
Enhancement
Issue type: New feature or request
Facilities
Facilities products (VAMC, Vet Center, etc)
points-8
sitewide
User Story or Problem Statement
As an editor, I would like to have validation on the Custom text field of the Appointment information in the Service Location so that I can ensure that I have filled out that field before I save the page.
Context
Prior to the Service Location being the source of truth for Appointment text type and custom text, the VAMC Facility Health Service had these fields and validated the presence of text in the Custom text field if "Custom text" was chosen for the Appointment text type.
Implementation steps
The likely area to add this code would be
va_gov_facilities_field_widget_single_element_paragraphs_form_alter
inva_gov_facilities.module
.Some code is captured in this branch:
VACMS-17124-add-text-validation-custom-appt-text-serv-loc
Screenshots
Acceptance Criteria
The text was updated successfully, but these errors were encountered: