---
original_url: "https://jace.pro/blog/using-uibmodel/"
format: markdown
ai_optimized: true
---

Using uibModel# Using uibModel

June 7, 2022 [servicenow ](/tags/servicenow/)[service-portal](/tags/service-portal/)

  Enable AI Animation**What is the post about?**

**What things would help with writing the post**

`c.openModal = function(action) {
        c.modalInstance = $uibModal.open({
            templateUrl: 'ticket-modal.html',
            controllerAs: 'modalC',
            scope: $scope,
            controller: function() {
                var modalC = this;
                modalC.modalInstance = c.modalInstance;
                modalC.action = action;
                modalC.messages = c.getMessages(action);
                modalC.data = c.data;
                modalC.record = c.data.recordId;
                modalC.action_reason = '';
                //modalC.fnSubmit = c.submitModal(action,modalC.record,modalC.action_reason);
            }
        });
    }`tahnk t1mb0b

---
[View this page on GitHub](https://github.com/jacebenson/jace.pro/tree/main/./src/posts/2022/2022-06-06-using-uibmodel.md).

[Using uibModel](https://jace.pro/blog/using-uibmodel/) [Jace Benson](https://jace.pro) ![Jace Benson](https://jace.pro/icon-512x512.png)

---

*This content is from Jace Benson's ServiceNow and tech blog at jace.pro*
*Original post: https://jace.pro/blog/using-uibmodel/*
