# Invoke modal from action sheet

**URL:** <https://forum.ionicframework.com/t/invoke-modal-from-action-sheet/10775>\
**Category:** uncategorized\
**Created:** [October 7, 2014, 10:10pm UTC](https://forum.ionicframework.com/t/invoke-modal-from-action-sheet/10775 "2014-10-07T22:10:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![codetillyoudrop](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@codetillyoudrop](https://forum.ionicframework.com/u/codetillyoudrop)\
**Post date:** [October 7, 2014, 11:08pm UTC](https://forum.ionicframework.com/t/invoke-modal-from-action-sheet/10775/2 "2014-10-07T23:08:43Z")

</div>

Hi. I had similar problem and solved it from the following link:

> **[Having functions for each Action Sheet button](http://forum.ionicframework.com/t/having-functions-for-each-action-sheet-button/1019)**
>
> Taking the standard markup for setting up an Action Sheet, I'm trying to create a function for each of the non-desctuctive buttons. So if my mark up is this: $scope.show = function() { // Show the action sheet $ionicActionSheet.show({ ...

buttonClicked: function(index) {  
if(index === 0){  
$scope.firstModal();  
}  
else if(index === 1){  
$scope.secondModal();  
}

```
   return true;

```

}

---

_[View the full topic](https://forum.ionicframework.com/t/invoke-modal-from-action-sheet/10775)._
