Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Error message on the widget client controller

EliaquimS
Tera Contributor

How do I put an error message on the widget client controller? Preventing the catalog item from being submitted.
Server Scripit: 
if (totalFTECalculation > 1) {
errorMessage('Message Here');
return;
}

Client Controller. 


1 REPLY 1

nv147
Tera Expert

Can you share your exact use case?

 

From what it sounds like, you may just want to create a catalog client script on the catalog item or items that would prevent submission.