How to trigger a validation error from configureCreateAction() relation manager

I need to make 2 fields have an error (red border and text below) after some code inside configureCreateAction() in a relation manager. Is it possible?
Was this page helpful?