Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to use a script include for ng-change

Bruler1230
Tera Expert

Hello,

I have a select box in a service portal widget that needs to update the user record when the selection changes. I have a script include that has the function to do this, but how do i get that script include function to run when the user changes what is in the dropdown? I have a ng-change in my html, but i am unsure how to handle this.

In the html, i have: 

ng-change="setNewValue()"

and in the client controller. i have:

$scope.setNewValue = function() {

}

Let me know if any more info is needed. thanks

5 REPLIES 5

find_real_file.png

 

find_real_file.png

find_real_file.png

find_real_file.png

 

find_real_file.png