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.

sending variables from one widget to next one and then to table

mehrnazasad
Tera Contributor

i have a feedback widget, if the user clicks on like/dislike it opens a new widget to collect feedback. i want to show other message in case of like than dislike. and want to send like/dislike from buttons in first widgetin addition to the feedback to table. 
i have used $rootScope.$on('feedback', function(event, data) 
in second widget to get the variables from last widget. but the problem is I have correct value inside $rootScope.$on{c.test}
but c.test does is undefind outside {} in the rest of code.

and first time that i refresh the page my button doesnt send the like(true/false) to the second widget. but if i press 2 times it will work fine.
anyone has any idea?
I have already used 2 days on this

1 REPLY 1

satyaprakas
Tera Expert

Hi @mehrnazasad ,

Can you please post your code

 

Regards,

Satya