When filling in a form where the user creates a new product, I would like the user’s chosen SKU to be unique.
I was hoping to be able to validate the input right there on the input element settings, but it only will check the input is not empty.
I went into the conditions, and do a search for product whose SKUs are like the input’s, and hope to trigger a “input is invalid” state.
But sadly, there’s no such thing (or did I miss it?).
So it seems the only way to do that is to add some additional warning element or disable the saving button until the issue is resolved.
But how to make the input have its invalid state? I can’t seem to see how to trigger that specifically.