Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Automatically validate the form when a change is detected.
♻️ Current situation & Problem
With the current UX flow, the user is required to find and press the "Validate" button to validate the form. There are a few problem with this flow:
⚙️ Release Notes
The validation checks now run automatically whenever a change to the form is detected. Feedback is provided immediately for when validation checks fail.
The download option only allows downloading the form if the form is valid, otherwise displays an error.
📚 Documentation
Now presents feedback any time a change is made to an item that will cause a validation error.
A red outline appears on items in the form builder whenever a validation check fails.
Resolving an error immediately makes the error go away.
The "Validate" check only checks for translation errors.
The download button only allows downloading if there are no errors in the FHIR otherwise it displays an error box.
Performance:
Added caching to reduce the number of times the validation is run if the values remain unchanged to improve performance.
✅ Testing
Auto validation on change
Code of Conduct & Contributing Guidelines
By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines: