Add dedicated validation form field
Remco Houthuijzen
Description
Currently, an input text form field is often used to perform validation within HelloID forms. While this works functionally, the layout and capabilities of this field are not ideal when the goal is validation rather than user input.
In many implementations, PowerShell is used to validate entered data and return the result to the form. However, the current approach has several limitations which make the user experience and implementation less optimal.
The validation logic often requires the use of regular expressions. From the PowerShell output, only a single field can currently be used to display the result of the validation. This makes it difficult to provide clear and structured feedback to the user.
Additionally, it is not possible to visually indicate the validation result, for example by showing a success or failure indicator using an icon or color difference.
Requested Enhancement
Introduce a dedicated form field type specifically designed for validation scenarios. This field should allow validation logic to be executed and provide clear feedback to the user about whether the entered value is valid.
Ideally this validation field would allow visual feedback such as success or error indicators and provide more flexibility in returning validation results to the form.
Example Scenario
A common scenario is updating a username. When a user enters a new username in a form, the system should validate whether that username already exists in Active Directory.
After entering the proposed username, the validation field could run a check against Active Directory and immediately show whether the username is available or already in use.
If the username already exists, the form could show a clear warning message. If the username is available, the form could show a confirmation indicating that the value is valid.
Reference Implementation
An example where this type of validation is currently implemented using a text input field can be found here:
Use Case / User Story
As an administrator, I want to validate user input in a form and provide clear feedback to the user about whether the entered value is valid, so that incorrect or conflicting values can be prevented before the request is submitted.
Business Value
This improvement would make form validation easier to implement, improve the user experience when filling in forms, and provide more flexibility for administrators who use validation logic in PowerShell during request workflows.