- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2019 10:37 AM
Hi all, I've got a variable value in the client script of a service portal widget. The value is actually defined in the server script first, and then I have it passing to the client where I was using it in a addInfoMessage. I now want to use the value in a popup modal...but I'm having trouble passing the value into the HTML script for the popup. Anyone able to help? thanks!
In my Client Script I've got the value defined like this, and it's capturing the correct value from the server.
var queueNumber = c.data.count;
And here is the script for the popup modal in the HTML Script:
<script>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">Popup Modal</h4>
</div>
<div class="panel-body wrapper-xl">
Thank you, a ticket has been created on your behalf. You are number {{Here's where I want the "queueNumber" value to show}} in the queue. You will now be redirected to the home screen.
</div>
<div class="panel-footer text-right">
<button class="btn btn-primary" ng-click="c.closeModal()">${Close}</button>
</div>
</div>
</script>
Solved! Go to Solution.
- Labels:
-
Service Portal Development