We are using a "Entity Table" widget in Dashboard to display the list of entities. Added one action to create new entity which opens a dialog with fields to configure parameters. These parameters are basically attributes that are saved with the help of Javascript written on that action.
I would like to provide validations on certain parameters for example, "name" attribute should be unique, "type" attribute should have fixed options etc.
When certain validation condition does not meet for the parameters, then we should be able to display an error message.
For example, in the attached image, when device name is entered, it validates and display an error message.

How can we achieve this for other parameters such "Seal ID" in ThingsBoard? "Seal ID" is an attribute of the device entity.
Your help would very much appreciated.
Thank you.
Regards, Bhimashankar