Calling a function from HTML template by defining class "onClick().

Abhishek_Thakur
Mega Sage

HTML buttons in java script, but for service portal ServiceNow has defined the ng-directives to perform this kind of operations. Here we have "ng-click" which helps you to perform certain actions when user clicks on form by calling the function which defined in client controller section in service portal.

 

LinkedIn Post: https://www.linkedin.com/posts/abhishek-thakur-4636a722b_servicenowcommunity-servicenowdeveloper-jav... 

1 REPLY 1

Maik Skoddow
Tera Patron
Tera Patron

Hi @Abhishek_Thakur 

to be honest, I don't like this misuse of questions just to promote any small tips or external content. It fills the activity stream with many open questions which cannot be answered. In this way, the real questions are pushed to the bottom of the list, putting users with real problems at a disadvantage!

Maik