How to use node status to display error for empty input

I wanted to know how to add the node status if any of text input in the editor is blank.

Got this code from docs but not sure how to use it in the html file.

this.status({fill:"red",shape:"ring",text:"disconnected"});

status(...) is a server side thing and is only valid for deployed nodes.

Once a user deploys your node, you will know if any fields are blank by checking what was sent in the config - then you can call .status

For the HTML side, you usevalidators on the field.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.