Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

PrashantLearnIT
Tera Sage

Did you know there are a set of methods available for portal widget's client controllers?

 

OOTB there is a set of methods available under spUtil to help you speed up your scripting for the client-side. 

Two simple methods I recommend are spUtil.addErrorMessage & spUtil.addInfoMessage. Allowing you to quickly bring up a message popup for the user which is non-invasive (like an alert box).

1.png

 

There are also more complex methods such as record watchers which can watch records on the backend and pass back the changed values. All in all they are very useful and are supported out-of-the-box functions. 

More details - https://docs.servicenow.com/bundle/vancouver-api-reference/page/app-store/dev_portal/API_reference/s...

 

P.S. Here's the snippet of code from the example above, don't forget to pass spUtil into the function!

2.png

 

If my content helped you in anyway, please mark this content as BOOKMARK, SUBSCRIBE & HELPFUL

 

Best Regards,

Prashant Kumar (LearnIT)

 

YouTube Channel LearnIT: https://www.youtube.com/@learnitwithprashant

Blog LearnIT: https://medium.com/@LearnITbyPrashant

Prashant Kumar LinkedIn: https://www.linkedin.com/in/learnitbyprashant/

ServiceNow Community Prashant Kumar - https://www.servicenow.com/community/user/viewprofilepage/user-id/19635