Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2023 10:19 AM
I was able to get that using below script in client controller
function($scope) {
var c = this;
$scope.$watch(function () {
return $scope.page.g_form.getValue('name_of_variable');
}, function (value) {
c.data.message = value;
});
}This script will instantly set the updated value of variable to c.data.message which I can access in html.
This works fine for one variable but I want to make it work for multiple variables. How can I do that? I have the variable names in an array.