I have an edit form with a managed metadata field on an edit form. The field is required. I'm using
PreSaveAction to do some rest calls and all before the form is saved. I'm using the following code to trigger the evaluation of the entire form, for example required fields and any custom validation defined in the list settings.
If the user types a value into the column and clicks into another field or the body/background, the column checks the entry and marks it invalid if no match is found. Or accepts it if a match is found.
But if the user clicks the Save button without first clicking anything else the evaluation of the term never happens and the form gets saved anyways.
On a regular form without the PreSaveAction, clicking the save button does trigger evaluation of the managed metadata fields.
I've noticed that there is a div with
.ms-taxonomy-writeableregion.ms-inputBoxActive applied if the input box is active.
I've tried setting the focus, blur, or triggering a click via jQuery. None of those worked.